]> Creatis software - crea.git/blobdiff - appli/creaNewProject/NewProject/CMakeLists.txt.in
Add CMAKE_POLICY, to avoid tons of warnings
[crea.git] / appli / creaNewProject / NewProject / CMakeLists.txt.in
index 31919f2fdda186b1b2651f1f5addb717c312fac8..e57248001773b871ab75f7c4b1e032d1744ee19f 100644 (file)
@@ -5,10 +5,21 @@
 # http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X
 # before starting.
 #
-# Generated with creaNewProject, version of : 03/03/2010
+# Generated with creaNewProject, version of : 12/03/2010
 # ---------------------------------
 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+#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)
+  CMAKE_POLICY(SET CMP0011 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
+
 ###################################
 PROJECT( PROJECT_NAME )
 ###################################
@@ -58,12 +69,12 @@ SET(USE_ITK       OFF)
 SET(USE_BOOST     OFF)
 
 # Note : Set USE_DOXYGEN to ON
-#  if you think you will ask, some day, 
+#  if you think you will ask, some day,
 #  for Doxygen generation
 SET(USE_DOXYGEN   OFF)
 
 # Note : Set USE_LATEX to ON, USE_TTH to ON
-#  if you think you will ask, some day, 
+#  if you think you will ask, some day,
 #  for doc generation using your own latex documents
 SET(USE_LATEX     OFF)
 SET(USE_TTH       OFF)