From 9e54d3ce9aa7c89c74582aae5189e452ad3910d6 Mon Sep 17 00:00:00 2001 From: Dale Lukas Peterson Date: Sun, 21 Mar 2021 13:17:43 -0700 Subject: [PATCH] Make Greeter link privately to fmt (#109) Greeter depends on fmt only in it's implementation file, therefore this dependency can be private. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 264b563..9d0c5c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ set_target_properties(Greeter PROPERTIES CXX_STANDARD 17) target_compile_options(Greeter PUBLIC "$<$:/permissive>") # Link dependencies -target_link_libraries(Greeter PUBLIC fmt::fmt) +target_link_libraries(Greeter PRIVATE fmt::fmt) target_include_directories( Greeter PUBLIC $