From: guigues Date: Fri, 21 Nov 2008 14:10:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: EED.02Oct2009~8 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=67aa17a7769667f7fc17884421a35b0b9f23dd29;p=creaEnvironment.git *** empty log message *** --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e7beb4d..2f5d494 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/lib/kernel_Environment/CMakeLists.txt b/lib/kernel_Environment/CMakeLists.txt index 53973d6..1900c49 100644 --- a/lib/kernel_Environment/CMakeLists.txt +++ b/lib/kernel_Environment/CMakeLists.txt @@ -1,6 +1,6 @@ #---------------------------------------------------------------------------- # SET THE NAME OF YOUR LIBRARY -SET ( LIBRARY_NAME CreaEnvironment ) +SET ( LIBRARY_NAME creaEnvironment ) #---------------------------------------------------------------------------- #----------------------------------------------------------------------------