From 20b2977b4a17b9d53f1b9a53f42c92025502e8f8 Mon Sep 17 00:00:00 2001 From: "A. Maitland Bottoms" Date: Tue, 13 Aug 2019 03:49:11 +0100 Subject: [PATCH] optional-static-apps Gbp-Pq: Name optional-static-apps --- apps/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 3b10134..b7f60bf 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -40,7 +40,7 @@ add_executable(volk_profile ) -if(ENABLE_STATIC_LIBS) +if(ENABLE_STATIC_LIBS AND ENABLE_STATIC_APPS) target_link_libraries(volk_profile volk_static ${Boost_LIBRARIES}) set_target_properties(volk_profile PROPERTIES LINK_FLAGS "-static") else() @@ -57,7 +57,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() -- 2.30.2