From a4075a553464503b54da9db4398e6bc3f3102c21 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Fri, 5 Feb 2021 15:12:46 +0100 Subject: [PATCH] change export interface fmt lib is link dependcy for test only now --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b70862..c3578fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,10 +66,11 @@ target_compile_features(Greeter PUBLIC cxx_std_17) target_sources(Greeter PRIVATE ${headers} ${sources}) # being a cross-platform target, we enforce standards conformance on MSVC -target_compile_options(Greeter PUBLIC "$<$:/permissive->") +# this should not exported on UNIX! CK +# FIXME target_compile_options(Greeter PUBLIC "$<$:/permissive->") # Link dependencies (if required) -target_link_libraries(Greeter PRIVATE fmt::fmt-header-only) +target_link_libraries(Greeter PUBLIC fmt::fmt) target_include_directories( Greeter PUBLIC $ @@ -91,6 +92,5 @@ packageProject( INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION} VERSION_HEADER "${VERSION_HEADER_LOCATION}" - # semicolon separated list of the project's dependencies - # XXX DEPENDENCIES fmt + DEPENDENCIES fmt )