Skip to content

Commit

Permalink
Make Greeter link privately to fmt (#109)
Browse files Browse the repository at this point in the history
Greeter depends on fmt only in it's implementation file, therefore this
dependency can be private.
  • Loading branch information
hazelnusse authored Mar 21, 2021
1 parent 6132c67 commit 9e54d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9e54d3c

Please sign in to comment.