gnucash maint: Fix regex in CMakeLists.txt.
John Ralls
jralls at code.gnucash.org
Fri Nov 30 02:41:33 EST 2018
Updated via https://github.com/Gnucash/gnucash/commit/5dcb44d9 (commit)
from https://github.com/Gnucash/gnucash/commit/e434835f (commit)
commit 5dcb44d9910481374c2d5e83dec6381fb38e1817
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Nov 30 16:40:35 2018 +0900
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.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbcf029..8609541 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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.
Summary of changes:
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list