1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

Make Greeter link privately to fmt

Greeter depends on fmt only in it's implementation file, therefore this
dependency can be private.
This commit is contained in:
Luke Peterson 2021-03-21 12:00:31 -07:00
parent 6132c67bd2
commit a44d35fe66

View file

@ -52,7 +52,7 @@ set_target_properties(Greeter PROPERTIES CXX_STANDARD 17)
target_compile_options(Greeter PUBLIC "$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/permissive>")
# Link dependencies
target_link_libraries(Greeter PUBLIC fmt::fmt)
target_link_libraries(Greeter PRIVATE fmt::fmt)
target_include_directories(
Greeter PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>