You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.0-swig.p...

26 lines
887 B

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)
###################