blob: 6beacf74880cea3f7818e3cb2d0926d2fa3fe73e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
scripts/CMakeLists.txt | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index bf2527b..16feeb4 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -8,16 +8,12 @@ if (RUN_SWIG)
# SWIG_EXECUTABLE - the path to the swig executable
# SWIG_VERSION - the version number of the swig executable
- find_package(SWIG)
+ find_package(SWIG 2.0.0)
if (NOT SWIG_FOUND)
message(STATUS "SWIG NOT found")
return()
endif (NOT SWIG_FOUND)
message(STATUS "SWIG version is ${SWIG_VERSION}")
- if (NOT ${SWIG_VERSION} STREQUAL "2.0.0" AND NOT ${SWIG_VERSION} STREQUAL "2.0.1")
- message(STATUS "SWIG version 2.0.0 exactly is required")
- return()
- endif (NOT ${SWIG_VERSION} STREQUAL "2.0.0" AND NOT ${SWIG_VERSION} STREQUAL "2.0.1")
endif (RUN_SWIG)
###################
|