From 67aa17a7769667f7fc17884421a35b0b9f23dd29 Mon Sep 17 00:00:00 2001 From: guigues Date: Fri, 21 Nov 2008 14:10:22 +0000 Subject: [PATCH] *** empty log message *** --- CMakeLists.txt | 11 ++++++++++- lib/kernel_Environment/CMakeLists.txt | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) 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 ) #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- -- 2.47.1