From: A. Maitland Bottoms Date: Fri, 15 Nov 2019 03:47:23 +0000 (+0000) Subject: optional-static-apps X-Git-Tag: archive/raspbian/2.0.0-3+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=36147bd9da852483881206c3cd6d94c2673ea32b;p=volk.git optional-static-apps Gbp-Pq: Name optional-static-apps --- 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()