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.
6 Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
8 Index: gnuradio-3.7.5/volk/cmake/VolkBoost.cmake
9 ===================================================================
10 --- gnuradio-3.7.5.orig/volk/cmake/Modules/VolkBoost.cmake
11 +++ gnuradio-3.7.5/volk/cmake/Modules/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
25 ########################################################################
26 # Build the QA test application
27 ########################################################################
30 +find_package(Boost "1.35" COMPONENTS "unit_test_framework")
32 +if(ENABLE_TESTING AND BUILD_TEST)
34 #include Boost headers
35 include_directories(${Boost_INCLUDE_DIRS})
40 -endif(ENABLE_TESTING)
41 +endif(ENABLE_TESTING AND BUILD_TEST)