From: mpech Date: Thu, 19 May 2011 12:40:12 +0000 (+0200) Subject: cmake_minimum_required back to 2.4 X-Git-Tag: v1.2.1~15 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9c2eac98fa5e9a48f3566aeb4e07d5052ee3cf89;p=clitk.git cmake_minimum_required back to 2.4 cmake_policy 5 new for add_definitions in tests --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a340a36..8ce5b58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ #========================================================= # CLITK = Command Line ITK -cmake_minimum_required(VERSION 2.8) -cmake_policy(VERSION 2.8) +cmake_minimum_required(VERSION 2.4) +cmake_policy(VERSION 2.4) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b85b146..0b0ad3e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,6 @@ +cmake_policy(SET CMP0005 NEW) + + macro(ADD_GOOGLE_TESTS executable) foreach ( source ${ARGN} ) file(READ "${source}" contents)