CMakeLists.txt
changeset 3074 271cfcb2bcda
parent 3055 f542a36ef6c0
child 3105 a919d0757938
--- a/CMakeLists.txt	Fri Mar 26 09:40:26 2010 +0000
+++ b/CMakeLists.txt	Fri Mar 26 12:16:12 2010 +0000
@@ -2,19 +2,24 @@
 
 cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
 
-if(COMMAND cmake_policy)
+IF(COMMAND cmake_policy)
 	cmake_policy(SET CMP0003 NEW)
-endif(COMMAND cmake_policy)
+ENDIF(COMMAND cmake_policy)
 
 #detect subversion revision (if present)
 set(version_suffix "-dev") #UNSET THIS VARIABLE AT RELEASE TIME
-IF (version_suffix MATCHES "-dev" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn) 
-FIND_PACKAGE(Subversion)
-IF(Subversion_FOUND)
-	Subversion_WC_INFO(${CMAKE_HOME_DIRECTORY} Project)
-	MESSAGE(STATUS "Builing revision ${Project_WC_REVISION}")
-	set(version_suffix ".${Project_WC_REVISION}")
-ENDIF(Subversion_FOUND)
+IF(version_suffix MATCHES "-dev")
+	set(HW_DEV true)
+	IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn) 
+		FIND_PACKAGE(Subversion)
+		IF(Subversion_FOUND)
+			Subversion_WC_INFO(${CMAKE_HOME_DIRECTORY} Project)
+			MESSAGE(STATUS "Builing revision ${Project_WC_REVISION}")
+			set(version_suffix ".${Project_WC_REVISION}")
+		ENDIF(Subversion_FOUND)
+	ENDIF()
+ELSE()
+	set(HW_DEV false)
 ENDIF()
 
 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)