From: A. Maitland Bottoms Date: Sun, 4 Sep 2022 16:00:56 +0000 (+0100) Subject: optional static apps X-Git-Tag: archive/raspbian/2.5.2-1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4227ee037947b7a79d4c30b2dcd986618df2de82;p=volk.git optional static apps For Debian, build apps with static libs if ENABLE_STATIC_APPS. Gbp-Pq: Name optional-static-apps --- diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 8ac9187..97b965c 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()