]> Creatis software - creaRigidRegistration.git/commitdiff
Avoid warnings with CMake 2.6 CREATOOLS.2-0-3
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 27 Sep 2010 10:38:40 +0000 (10:38 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 27 Sep 2010 10:38:40 +0000 (10:38 +0000)
CMakeLists.txt

index ae96003a855bb841d0b6faa2a7ffcc366dcb02e4..5ebed30acb3de3b8d136cd6a2dc216d3b57e46e5 100644 (file)
@@ -2,13 +2,20 @@
 #
 # Unless you are an experimented cmake user,
 # have a look at :
-# http://www.creatis.insa-lyon.fr/creatools/GettingStarted_creaTools
+# http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X
 # before starting.
 #
 # ---------------------------------
 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
+# 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)
+  CMAKE_POLICY(SET CMP0011 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
 ###################################
 PROJECT(creaRigidRegistration)
 ###################################