optional static apps
authorA. Maitland Bottoms <bottoms@debian.org>
Sun, 25 Feb 2024 13:51:33 +0000 (08:51 -0500)
committerA. Maitland Bottoms <bottoms@debian.org>
Sun, 25 Feb 2024 13:51:33 +0000 (08:51 -0500)
Forwarded: not-needed

For Debian, build apps with static libs if ENABLE_STATIC_APPS.

Gbp-Pq: Name optional-static-apps

apps/CMakeLists.txt

index 98d002af3110adae90ba292bd016972b13f7c317..d73e282ae7613cdbcc3544021976b1b9adfb6f92 100644 (file)
@@ -42,7 +42,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()
@@ -58,7 +58,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()