summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2010-10-06 22:24:44 (GMT)
committerBrad King <brad.king@kitware.com>2010-10-07 14:04:19 (GMT)
commit42126aaf6ca83bbfbebab364a026763f62770bf7 (patch)
tree3f5deb73e67a3d56919456cb3d3abd69ff4c2969
parentba3064b5848a994765d5fbf76ff516cd98f4465f (diff)
downloadCMake-42126aaf6ca83bbfbebab364a026763f62770bf7.zip
CMake-42126aaf6ca83bbfbebab364a026763f62770bf7.tar.gz
CMake-42126aaf6ca83bbfbebab364a026763f62770bf7.tar.bz2
FindSubversion: Fix for German localized client (#11273)
On a Win32 system with a German version of SilkSVN I couldn't run CMake again on the working copy as the cache is displayed as corrupted. The cause is that the regular expression to find the version number will not match and put everything from the "svn --version" output into the cache, which contains umlauts and other funny characters. Fix the regexp to not only match " version " but also " Version " as it's in the German output. I have no idea what will happen on a French or Japanese system. This should be easy to test as it happens also on a German Linux system.
-rw-r--r--Modules/FindSubversion.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSubversion.cmake b/Modules/FindSubversion.cmake
index daf3d87..61e0253 100644
--- a/Modules/FindSubversion.cmake
+++ b/Modules/FindSubversion.cmake
@@ -57,7 +57,7 @@ IF(Subversion_SVN_EXECUTABLE)
OUTPUT_VARIABLE Subversion_VERSION_SVN
OUTPUT_STRIP_TRAILING_WHITESPACE)
- STRING(REGEX REPLACE "^(.*\n)?svn, version ([.0-9]+).*"
+ STRING(REGEX REPLACE "^(.*\n)?svn, [Vv]ersion ([.0-9]+).*"
"\\2" Subversion_VERSION_SVN "${Subversion_VERSION_SVN}")
MACRO(Subversion_WC_INFO dir prefix)