The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gnuradio / 0001-suppress-boost_unitest-detection.patch
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.
5
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/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
14      filesystem
15      system
16 -    unit_test_framework
17      program_options
18  )
19  
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  ########################################################################
27  
28 +find_package(Boost "1.35" COMPONENTS "unit_test_framework")
29  
30 -if(Boost_FOUND)
31 +if(Boost_FOUND AND BUILD_TEST)
32  
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)
38  
39 -endif(Boost_FOUND)
40 +endif(Boost_FOUND AND BUILD_TEST)