From bed52c7bc3ae060c0fb025c3ccac0c4f831341ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffan=20S=C3=B8lvsten?= Date: Fri, 2 Jun 2023 10:21:10 +0200 Subject: [PATCH] Fix 'ADIAR_STATS' flag is not propagated to client compilation --- src/adiar/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adiar/CMakeLists.txt b/src/adiar/CMakeLists.txt index c928cac2f..18baf7c5a 100644 --- a/src/adiar/CMakeLists.txt +++ b/src/adiar/CMakeLists.txt @@ -152,13 +152,13 @@ else() endif() if (ADIAR_STATS) - target_compile_definitions(${PROJECT_NAME} PRIVATE ADIAR_STATS) + target_compile_definitions(${PROJECT_NAME} PUBLIC ADIAR_STATS) endif() # ============================================================================ # # Link dependencies -target_link_libraries(${PROJECT_NAME} tpie) -target_link_libraries(${PROJECT_NAME} Cnl) +target_link_libraries(${PROJECT_NAME} PUBLIC tpie) +target_link_libraries(${PROJECT_NAME} PUBLIC Cnl) # ============================================================================ # # Setup as library