Author: mog
Date: Thu May 22 18:25:19 2008
New Revision: 26773

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26773&view=rev
Log:
Fix regex which parses the gcc version.

Modified:
    trunk/cmake/FindBoost.cmake

Modified: trunk/cmake/FindBoost.cmake
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/cmake/FindBoost.cmake?rev=26773&r1=26772&r2=26773&view=diff
==============================================================================
--- trunk/cmake/FindBoost.cmake (original)
+++ trunk/cmake/FindBoost.cmake Thu May 22 18:25:19 2008
@@ -281,7 +281,7 @@
             ARGS --version
             OUTPUT_VARIABLE _boost_COMPILER_VERSION
         )
-        STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9] .*" "\\1\\2"
+        STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9].*" "\\1\\2"
                _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})
         SET (_boost_COMPILER "-gcc${_boost_COMPILER_VERSION}")
       ENDIF (NOT CMAKE_COMPILER_IS_GNUCC)


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to