CMakeLists.txt
changeset 3105 a919d0757938
parent 3074 271cfcb2bcda
child 3106 3610efab8a32
--- 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()