From: jean-pierre roux Date: Wed, 3 Mar 2010 16:18:14 +0000 (+0000) Subject: Fixes X-Git-Tag: CREATOOLS.2-0-3~21 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=187ad4a7a894141158d849a8d164badf76417d2d;p=creaBruker.git Fixes --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 89954c7..e8eba10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,13 +2,22 @@ # # 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) +#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 CMP0011 NEW) + CMAKE_POLICY(SET CMP0005 NEW) +ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) + ################################### PROJECT(creaBruker) ###################################