]> Creatis software - creaEnvironment.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Fri, 21 Nov 2008 14:10:22 +0000 (14:10 +0000)
committerguigues <guigues>
Fri, 21 Nov 2008 14:10:22 +0000 (14:10 +0000)
CMakeLists.txt
lib/kernel_Environment/CMakeLists.txt

index e7beb4d8ece488f1d62ce6502b0743b00afe9511..2f5d4943ae8f6a7b1d885c8aaa1f52d1bad7e973 100644 (file)
@@ -1,3 +1,12 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
+
+# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
+IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+  CMAKE_POLICY(SET CMP0003 NEW)
+  CMAKE_POLICY(SET CMP0005 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
 PROJECT(CreaEnvironment)
 
 SET(PROJECT_MAJOR_VERSION 1)
@@ -32,4 +41,4 @@ MARK_AS_ADVANCED(
 
 
 SUBDIRS(lib)
-#SUBDIRS(appli)
\ No newline at end of file
+#SUBDIRS(appli)
index 53973d632fed76fddc0d87f9cfc418554e253e4a..1900c49c4036d568cbc9db4687800b44d67e1f15 100644 (file)
@@ -1,6 +1,6 @@
 #----------------------------------------------------------------------------
 # SET THE NAME OF YOUR LIBRARY
-SET ( LIBRARY_NAME   CreaEnvironment  )
+SET ( LIBRARY_NAME   creaEnvironment  )
 #----------------------------------------------------------------------------
 
 #----------------------------------------------------------------------------