mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 13:41:13 +02:00
Make Greeter link privately to fmt (#109)
Greeter depends on fmt only in it's implementation file, therefore this dependency can be private.
This commit is contained in:
parent
6132c67bd2
commit
9e54d3ce9a
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue