From 146d4652eba6ea985beeebdb1b73d2b7c4469a3e Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Mon, 22 Apr 2024 16:06:30 -0500 Subject: [PATCH] set FGT linkage to PRIVATE --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a938d29..4a47623d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,8 +62,8 @@ target_include_directories(Library-C++ ${EIGEN3_INCLUDE_DIR} ) if(WITH_FGT) - target_link_libraries(Library-C++ PUBLIC Fgt::Library-C++) - target_compile_definitions(Library-C++ PUBLIC CPD_WITH_FGT) + target_link_libraries(Library-C++ PRIVATE Fgt::Library-C++) + target_compile_definitions(Library-C++ PRIVATE CPD_WITH_FGT) endif() option(WITH_STRICT_WARNINGS "Build with stricter warnings" ON)