Fix regex in CMakeLists.txt.

Apparently CMake doesn't handle backslashes well and \.
doesn't work in spite of its being an example in the documentation.
This commit is contained in:
John Ralls
2018-11-30 16:40:35 +09:00
parent e434835f68
commit 5dcb44d991

View File

@@ -288,7 +288,7 @@ endif (WIN32)
if(GENERATE_SWIG_WRAPPERS)
find_package (SWIG 2.0.10 REQUIRED)
include (${SWIG_USE_FILE})
string(REGEX MATCH "^[0-9]+\." SWIG_MAJOR ${SWIG_VERSION})
string(REGEX MATCH "^[0-9]+[.]" SWIG_MAJOR ${SWIG_VERSION})
endif()
# Find Guile and determine which version we are using.