Skip to content

Commit

Permalink
Added GNURadio version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gracid committed Nov 29, 2019
1 parent e17565b commit 0a1f587
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,15 @@ ENDIF()
########################################################################
# Install directories
########################################################################
find_package(Gnuradio "3.8" REQUIRED)
set(MIN_GR_VERSION "3.8.0")
set(MAX_GR_VERSION "3.9.0")
find_package(Gnuradio REQUIRED)
include(GrVersion)
if("${Gnuradio_VERSION}" VERSION_LESS MIN_GR_VERSION OR "${Gnuradio_VERSION}"
VERSION_GREATER_EQUAL MAX_GR_VERSION)
MESSAGE(FATAL_ERROR "GnuRadio version required: >=\"" ${MIN_GR_VERSION} "\" \
< \"${MAX_GR_VERSION}\" found: \"" ${Gnuradio_VERSION} "\"")
endif()

include(GrPlatform) #define LIB_SUFFIX

Expand Down

0 comments on commit 0a1f587

Please sign in to comment.