CMake:
authorsmxx
Sat, 27 Mar 2010 12:01:40 +0000
changeset 3105 a919d0757938
parent 3104 6cdc45b3b8a6
child 3106 3610efab8a32
CMake: * Truncate revision number (version_suffix) to numbers only (some versions of svn seem to add other strings)
CMakeLists.txt
--- a/CMakeLists.txt	Sat Mar 27 11:59:03 2010 +0000
+++ b/CMakeLists.txt	Sat Mar 27 12:01:40 2010 +0000
@@ -16,6 +16,8 @@
 			Subversion_WC_INFO(${CMAKE_HOME_DIRECTORY} Project)
 			MESSAGE(STATUS "Builing revision ${Project_WC_REVISION}")
 			set(version_suffix ".${Project_WC_REVISION}")
+			#truncate to numbers only - trying to fix a problem described in http://www.hedgewars.org/node/2019
+			STRING(REGEX REPLACE "^\\.(\\d+)" "\\1" version_suffix ${version_suffix})
 		ENDIF(Subversion_FOUND)
 	ENDIF()
 ELSE()