1 By default, the boost test option is mandatory for build environment
3 This patch suppress this dependency and allows the test part only if
4 build_test is enabled at the Buildroot level.
8 Index: gnuradio-3.7.5/volk/cmake/VolkBoost.cmake
9 ===================================================================
10 --- gnuradio-3.7.5.orig/volk/cmake/VolkBoost.cmake
11 +++ gnuradio-3.7.5/volk/cmake/VolkBoost.cmake
12 @@ -29,7 +29,6 @@ set(__INCLUDED_VOLK_BOOST_CMAKE TRUE)
13 set(BOOST_REQUIRED_COMPONENTS
20 Index: gnuradio-3.7.5/volk/lib/CMakeLists.txt
21 ===================================================================
22 --- gnuradio-3.7.5.orig/volk/lib/CMakeLists.txt
23 +++ gnuradio-3.7.5/volk/lib/CMakeLists.txt
24 @@ -540,8 +540,9 @@ endif(ENABLE_STATIC_LIBS)
25 # Build the QA test application
26 ########################################################################
28 +find_package(Boost "1.35" COMPONENTS "unit_test_framework")
31 +if(Boost_FOUND AND BUILD_TEST)
33 set_source_files_properties(
34 ${CMAKE_CURRENT_SOURCE_DIR}/testqa.cc PROPERTIES
35 @@ -558,4 +559,4 @@ if(Boost_FOUND)
36 target_link_libraries(test_all volk ${Boost_LIBRARIES})
37 add_test(qa_volk_test_all test_all)
40 +endif(Boost_FOUND AND BUILD_TEST)