summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-10-03 10:36:30 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2013-10-03 10:36:30 +0200
commitc0a54d95dfa351eb64ebd5ef966537cadbdd47a3 (patch)
treec36c2bfc77b655d10654d29afcf228d28b06c303
parent5620cbad27b37a2334245a88b348bcd78f2b6f49 (diff)
gnuradioinput: don't interrupt build if gr-osmosdr could not be found
-rw-r--r--plugins/samplesource/gnuradio/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/samplesource/gnuradio/CMakeLists.txt b/plugins/samplesource/gnuradio/CMakeLists.txt
index 2dbc5a6..16f37aa 100644
--- a/plugins/samplesource/gnuradio/CMakeLists.txt
+++ b/plugins/samplesource/gnuradio/CMakeLists.txt
@@ -11,11 +11,7 @@ endif(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")
find_package(Boost)
-if(NOT GNURADIO_OSMOSDR_FOUND)
- message(FATAL_ERROR "gr-osmosdr required to build sample source plugin.")
-endif(NOT GNURADIO_OSMOSDR_FOUND)
-
-if(NOT GNURADIO_RUNTIME_FOUND)
+if(NOT GNURADIO_RUNTIME_FOUND AND GNURADIO_OSMOSDR_FOUND)
message(STATUS "GNU Radio not found, assuming built-in gr-osmosdr runtime.")
@@ -29,7 +25,7 @@ if(NOT GNURADIO_RUNTIME_FOUND)
LIST(APPEND GNURADIO_RUNTIME_LIBRARIES ${GNURADIO_OSMOSDR_LIBRARIES})
-endif(NOT GNURADIO_RUNTIME_FOUND)
+endif(NOT GNURADIO_RUNTIME_FOUND AND GNURADIO_OSMOSDR_FOUND)
if(Boost_FOUND AND GNURADIO_RUNTIME_FOUND AND GNURADIO_OSMOSDR_FOUND)