]> Creatis software - crea.git/commitdiff
Add CMAKE_POLICY, to avoid tons of warnings
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 17 Mar 2010 11:14:20 +0000 (11:14 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 17 Mar 2010 11:14:20 +0000 (11:14 +0000)
appli/creaNewProject/NewProject/CMakeLists.txt.in
appli/creaNewProject/NewProject/appli/CMakeLists.txt
appli/creaNewProject/NewProject/doc/README_HowToUpload.txt
appli/creaNewProject/NewProject/lib/CMakeLists.txt
cmake/CREAMacro_FindAndUseLibraries.cmake

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)
index 1f5bdfc015085e8632c732f3911113b47ddac4c0..8a16d76e60d227717ba135637733e188314e846f 100644 (file)
@@ -1,3 +1,3 @@
-# Add a SUBDIRS command for each of your applications
+# Add a SUBDIRS command for each one of your applications
 # SUBDIRS(MyApp1)
 # SUBDIRS(MyApp2)
index 0dcfc21eec496b8338238e0be05da2b8b1b3fe4a..2b15cbdb4d02f7b4c6b3f80cf11c4e6072e1d5c2 100644 (file)
@@ -2,4 +2,4 @@ After builing ALL :
 
 cd in the build tree
 cd share/doc
-rsync -rtvO  . tux:/var/www/html/software/public/creatools/bbtk/v0_9_0/ --perms --chmod=Dg+s,ug+w
+rsync -rtvO  . tux:/var/www/html/software/public/creatools/bbtk/v0_9_3/ --perms --chmod=Dg+s,ug+w
index a9bd25b2e42da96330be409ed1e17e32308a31f6..bfbe22f4fd835765bdd1f92485e079d21cd96569 100644 (file)
@@ -1,2 +1,2 @@
-# Add a SUBDIRS command for each of your libraries
+# Add a SUBDIRS command for each one of your libraries
 # SUBDIRS(MyLib1)
index 0a9f2fabbb5a361de7c8ab3caed9328dd9461575..48e6436640c715400efe0ef1f5f590c20e12d5f5 100644 (file)
@@ -270,7 +270,7 @@ IF(USE_BOOST)
       MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
       INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})        
       LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
-   
+
       CREA_DEFINE( USE_BOOST )
          IF(WIN32)