CMakeLists.txt
changeset 4360 6cdb427ef82c
parent 4337 85e02b1a8e8f
child 4460 bdace1e2f8aa
--- a/CMakeLists.txt	Sat Nov 27 23:29:07 2010 +0100
+++ b/CMakeLists.txt	Sun Nov 28 01:58:43 2010 +0100
@@ -18,13 +18,9 @@
 				     ARGS identify -in ${CMAKE_CURRENT_SOURCE_DIR}
 				     OUTPUT_VARIABLE version_suffix
 				     )
-			STRING(REGEX REPLACE "(.*) +(.*)" "\\2:\\1" version_suffix ${version_suffix})
+			STRING(REGEX REPLACE "([0-9a-zA-Z]+)(.*) ([0-9]+)(.*)" "\\3:\\1" version_suffix ${version_suffix})
 			MESSAGE(STATUS "Building revision ${version_suffix}")
 			set(version_suffix ".${version_suffix}")
-#			#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})
-#			# screw whole suffix if there's no number
-#			STRING(REGEX REPLACE "^\\.([a-z]+.*)" "-dev" version_suffix ${version_suffix})
 		ENDIF()
 	ENDIF()
 ELSE()