diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2010-10-07 00:24:44 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-10-07 10:04:19 -0400 |
commit | 42126aaf6ca83bbfbebab364a026763f62770bf7 (patch) | |
tree | 3f5deb73e67a3d56919456cb3d3abd69ff4c2969 /Modules | |
parent | ba3064b5848a994765d5fbf76ff516cd98f4465f (diff) | |
download | cmake-42126aaf6ca83bbfbebab364a026763f62770bf7.tar.gz |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindSubversion.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSubversion.cmake b/Modules/FindSubversion.cmake index daf3d87f51..61e02535e2 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) |