-
-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the include path of the doctest
CMake interface target so users need to specify the folder as well
#175
Comments
well I don't know why the examples in the repository are done this way but the header is inside of a doctest folder itself so one may do it the way you describe if he chooses to. Looking back perhaps it should have been |
That's true. It matters for CMake users, though. I have to change from doctest/doctest.h to doctest.h after I use target_link_library(target doctst::doctest) instead of include_directories(). |
Well perhaps you could define the I would appreciate if others give their opinion on this issue as well before deciding if I should change anything. |
I generally prefer external libraries to use includes in the form of |
I believe <doctest/doctest.h> is the consistent way; otherwise how do you justify putting it into the doctest folder? |
doctest
CMake interface target so users need to specify the folder as well
changed in release |
…o wandbox (the online compiler) with the right directory structure - the online service wouldn't allow me to use paths for including headers... relates #175
Hi @ncihnegn. I've tried to build main example from Readme via CMake (CMakeLists.txt) and have got an error.
I think, it's need to specify Line 140 in ae7a135
If I specify @onqtam, what do you think about it? |
I am just curious about the rationale behind using "doctest.h" instead of "doctest/doctest.h".
The text was updated successfully, but these errors were encountered: