summaryrefslogtreecommitdiffstats
path: root/package/gnuradio/0001-suppress-boost_unitest-detection.patch
blob: f1713dc349b32bd9e25a27bb0e74dbda3b4160fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
By default, the boost test option is mandatory for build environment
detection. 
This patch suppress this dependency and allows the test part only if
build_test is enabled at the Buildroot level.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
Index: gnuradio-3.7.5/volk/cmake/VolkBoost.cmake
===================================================================
--- gnuradio-3.7.5.orig/volk/cmake/Modules/VolkBoost.cmake
+++ gnuradio-3.7.5/volk/cmake/Modules/VolkBoost.cmake
@@ -29,7 +29,6 @@ set(__INCLUDED_VOLK_BOOST_CMAKE TRUE)
 set(BOOST_REQUIRED_COMPONENTS
     filesystem
     system
-    unit_test_framework
     program_options
 )
 
Index: gnuradio-3.7.5/volk/lib/CMakeLists.txt
===================================================================
--- gnuradio-3.7.5.orig/volk/lib/CMakeLists.txt
+++ gnuradio-3.7.5/volk/lib/CMakeLists.txt
@@ -580,7 +580,10 @@
 ########################################################################
 # Build the QA test application
 ########################################################################
-if(ENABLE_TESTING)
+
+find_package(Boost "1.35" COMPONENTS "unit_test_framework")
+
+if(ENABLE_TESTING AND BUILD_TEST)
 
     #include Boost headers
     include_directories(${Boost_INCLUDE_DIRS})
@@ -597,4 +600,4 @@
         TARGET_DEPS volk
     )
 
-endif(ENABLE_TESTING)
+endif(ENABLE_TESTING AND BUILD_TEST)
OpenPOWER on IntegriCloud