uclibc: fix two more regressions introduced in 1.0.18
[buildroot-gz.git] / package / gnuradio / 0001-suppress-boost_unitest-detection.patch
blobf1713dc349b32bd9e25a27bb0e74dbda3b4160fe
1 By default, the boost test option is mandatory for build environment
2 detection.
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>
7 ---
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
14 filesystem
15 system
16 - unit_test_framework
17 program_options
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 @@ -580,7 +580,10 @@
25 ########################################################################
26 # Build the QA test application
27 ########################################################################
28 -if(ENABLE_TESTING)
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})
36 @@ -597,4 +600,4 @@
37 TARGET_DEPS volk
40 -endif(ENABLE_TESTING)
41 +endif(ENABLE_TESTING AND BUILD_TEST)