X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fgnuradio%2F0001-suppress-boost_unitest-detection.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fgnuradio%2F0001-suppress-boost_unitest-detection.patch;h=76638815abde11c25f1e3fdc2307d7ff3cba98b9;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/gnuradio/0001-suppress-boost_unitest-detection.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/gnuradio/0001-suppress-boost_unitest-detection.patch new file mode 100644 index 0000000..7663881 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/gnuradio/0001-suppress-boost_unitest-detection.patch @@ -0,0 +1,40 @@ +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 +--- +Index: gnuradio-3.7.5/volk/cmake/VolkBoost.cmake +=================================================================== +--- gnuradio-3.7.5.orig/volk/cmake/VolkBoost.cmake ++++ gnuradio-3.7.5/volk/cmake/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 +@@ -540,8 +540,9 @@ endif(ENABLE_STATIC_LIBS) + # Build the QA test application + ######################################################################## + ++find_package(Boost "1.35" COMPONENTS "unit_test_framework") + +-if(Boost_FOUND) ++if(Boost_FOUND AND BUILD_TEST) + + set_source_files_properties( + ${CMAKE_CURRENT_SOURCE_DIR}/testqa.cc PROPERTIES +@@ -558,4 +559,4 @@ if(Boost_FOUND) + target_link_libraries(test_all volk ${Boost_LIBRARIES}) + add_test(qa_volk_test_all test_all) + +-endif(Boost_FOUND) ++endif(Boost_FOUND AND BUILD_TEST)