CMake:
authorsmxx
Sat, 27 Mar 2010 12:05:01 +0000
changeset 3106 3610efab8a32
parent 3105 a919d0757938
child 3107 1fa539758c10
CMake: * Fixed last commit
CMakeLists.txt
--- a/CMakeLists.txt	Sat Mar 27 12:01:40 2010 +0000
+++ b/CMakeLists.txt	Sat Mar 27 12:05:01 2010 +0000
@@ -17,7 +17,9 @@
 			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})
+			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(Subversion_FOUND)
 	ENDIF()
 ELSE()