File: optional-static-apps

package info (click to toggle)
volk 2.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,464 kB
  • sloc: ansic: 44,056; cpp: 3,666; python: 840; asm: 802; sh: 541; xml: 357; makefile: 195
file content (24 lines) | stat: -rw-r--r-- 851 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: A. Maitland Bottoms <bottoms@debian.org>
Description: optional static apps
 For Debian, build apps with static libs if ENABLE_STATIC_APPS.

--- a/apps/CMakeLists.txt
+++ b/apps/CMakeLists.txt
@@ -44,7 +44,7 @@
 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 @@
 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()