CMakeLists.txt
changeset 3105 a919d0757938
parent 3074 271cfcb2bcda
child 3106 3610efab8a32
equal deleted inserted replaced
3104:6cdc45b3b8a6 3105:a919d0757938
    14 		FIND_PACKAGE(Subversion)
    14 		FIND_PACKAGE(Subversion)
    15 		IF(Subversion_FOUND)
    15 		IF(Subversion_FOUND)
    16 			Subversion_WC_INFO(${CMAKE_HOME_DIRECTORY} Project)
    16 			Subversion_WC_INFO(${CMAKE_HOME_DIRECTORY} Project)
    17 			MESSAGE(STATUS "Builing revision ${Project_WC_REVISION}")
    17 			MESSAGE(STATUS "Builing revision ${Project_WC_REVISION}")
    18 			set(version_suffix ".${Project_WC_REVISION}")
    18 			set(version_suffix ".${Project_WC_REVISION}")
       
    19 			#truncate to numbers only - trying to fix a problem described in http://www.hedgewars.org/node/2019
       
    20 			STRING(REGEX REPLACE "^\\.(\\d+)" "\\1" version_suffix ${version_suffix})
    19 		ENDIF(Subversion_FOUND)
    21 		ENDIF(Subversion_FOUND)
    20 	ENDIF()
    22 	ENDIF()
    21 ELSE()
    23 ELSE()
    22 	set(HW_DEV false)
    24 	set(HW_DEV false)
    23 ENDIF()
    25 ENDIF()