1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-01 06:30:52 +02:00

FIXME: the packageProject() makes the problem

so the standalone project does not build!
and the cmake project config files can't be installed this way?
This commit is contained in:
ClausKlein 2021-02-06 11:13:07 +01:00
parent 5f9aa807b9
commit e5c060387e
3 changed files with 18 additions and 13 deletions

View file

@ -39,7 +39,7 @@ CPMAddPackage(
file(GLOB sources CONFIGURE_DEPENDS source/*.cpp)
add_executable(GreeterTests ${sources})
target_link_libraries(GreeterTests doctest::doctest Greeter::Greeter)
target_link_libraries(GreeterTests PRIVATE doctest::doctest Greeter::Greeter)
target_compile_features(GreeterTests PUBLIC cxx_std_17)
# enable compiler warnings