bfgroup / Lyra

A simple to use, composable, command line parser for C++ 11 and beyond
https://bfgroup.github.io/Lyra/
Boost Software License 1.0
471 stars 56 forks source link

single_include_test.cpp fails #57

Closed yurivict closed 2 years ago

yurivict commented 2 years ago

All tests pass except for this one:

single_include_test.cpp:8:10: fatal error: 'lyra/lyra.hpp' file not found
#include <lyra/lyra.hpp>
         ^~~~~~~~~~~~~~~
1 error generated.

Other tests found installed headers in /usr/local/include/lyra/* except for this case for some reason.

grafikrobot commented 2 years ago

That is intentional. It's a fail test, i.e. passing the test entails failing to compile. As you can see here https://dev.azure.com/bfgroup/Lyra/_build/results?buildId=146&view=logs&j=ab7f25a7-b5a5-579d-a20f-21af88c4eab1&t=37c4bf20-e459-5190-f3b1-f1c653dec08f&l=211. It's checking that attempting to include the non-single-header when one only has the single header file fails.

If you have questions on how to get started on using or testing the library it would be better to post a discussion https://github.com/bfgroup/Lyra/discussions.