optional-static-apps
authorA. Maitland Bottoms <bottoms@debian.org>
Mon, 6 Jan 2020 04:17:57 +0000 (04:17 +0000)
committerA. Maitland Bottoms <bottoms@debian.org>
Mon, 6 Jan 2020 04:17:57 +0000 (04:17 +0000)
Gbp-Pq: Name optional-static-apps

apps/CMakeLists.txt

index 6a0cee8cbba680e83b3fca1aa5bda82717f885b8..54980626d79f1b9905159788491a1865bb1f8a65 100644 (file)
@@ -56,7 +56,7 @@ if(FILESYSTEM_FOUND)
     target_link_libraries(volk_profile PRIVATE std::filesystem)
 endif()
 
-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()
@@ -73,7 +73,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()