optional static apps
authorA. Maitland Bottoms <bottoms@debian.org>
Tue, 12 Apr 2022 22:39:33 +0000 (23:39 +0100)
committerA. Maitland Bottoms <bottoms@debian.org>
Tue, 12 Apr 2022 22:39:33 +0000 (23:39 +0100)
Build apps with static libs if ENABLE_STATIC_APPS.

Gbp-Pq: Name optional-static-apps

apps/CMakeLists.txt

index efc4a7b0ac8525757fbeadaa123ff333f98d8670..63498b9828b3de9db9a2787459581b11d0b3a12c 100644 (file)
@@ -53,7 +53,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()
@@ -70,7 +70,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()