Skip to content

Commit

Permalink
don't build gr-limesuiteng if GNURadio is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Dec 9, 2024
1 parent 377f540 commit 61b5518
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ add_subdirectory(Soapy_limesuiteng)
########################################################################
## GNU Radio plugin
########################################################################
find_package(Gnuradio "3.10")
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_GNURADIO_PREREQ "Build LimeSuiteNG plugin for GNU Radio" ON "ENABLE_LIBRARY;BUILD_SHARED_LIBS" OFF)
cmake_dependent_option(
ENABLE_GNURADIO_PREREQ "Build LimeSuiteNG plugin for GNU Radio" ON "GNURADIO_FOUND;ENABLE_LIBRARY;BUILD_SHARED_LIBS" OFF)

if(ENABLE_GNURADIO_PREREQ)
add_subdirectory(gr-limesuiteng)
else()
add_feature_info(GNURADIO OFF "GNU Radio 3.9+ Plug-in")
add_feature_info(GNURADIO OFF "GNU Radio 3.10+ Plug-in")
endif()

########################################################################
Expand Down

0 comments on commit 61b5518

Please sign in to comment.