From 0228a2dd14a00ff6436b017fd9728b0c36233759 Mon Sep 17 00:00:00 2001 From: "A. Maitland Bottoms" Date: Sat, 16 Dec 2023 09:31:28 -0500 Subject: [PATCH] optional static apps Forwarded: not-needed For Debian, build apps with static libs if ENABLE_STATIC_APPS. Gbp-Pq: Name optional-static-apps --- apps/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index db6ab50..fd4e307 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -44,7 +44,7 @@ if(${find_experimental}) endif() target_link_libraries(volk_profile PRIVATE std::filesystem) -if(ENABLE_STATIC_LIBS) +if(ENABLE_STATIC_LIBS AND ENABLE_STATIC_APPS) target_link_libraries(volk_profile PRIVATE volk_static) set_target_properties(volk_profile PROPERTIES LINK_FLAGS "-static") else() @@ -61,7 +61,7 @@ install( add_executable(volk-config-info volk-config-info.cc ${CMAKE_CURRENT_SOURCE_DIR}/volk_option_helpers.cc ) -if(ENABLE_STATIC_LIBS) +if(ENABLE_STATIC_LIBS AND ENABLE_STATIC_APPS) target_link_libraries(volk-config-info volk_static) set_target_properties(volk-config-info PROPERTIES LINK_FLAGS "-static") else() -- 2.30.2