Correction to swig detection with cmake

This commit is contained in:
Piotr Krysik 2016-04-10 11:22:24 +02:00
parent 6e9efb0aee
commit 8cc68595bc
1 changed files with 7 additions and 3 deletions

View File

@ -66,9 +66,13 @@ endif()
find_package(SWIG)
if(NOT SWIG_FOUND)
message(FATAL_ERROR "SWIG required to compile gr-gsm")
endif()
if(SWIG_FOUND)
# Minimum SWIG version required is 1.3.31
set(SWIG_VERSION_CHECK FALSE)
if("${SWIG_VERSION}" VERSION_GREATER "1.3.30")
set(SWIG_VERSION_CHECK TRUE)
endif()
endif(SWIG_FOUND)
########################################################################