From 9c2eac98fa5e9a48f3566aeb4e07d5052ee3cf89 Mon Sep 17 00:00:00 2001 From: mpech Date: Thu, 19 May 2011 14:40:12 +0200 Subject: [PATCH] cmake_minimum_required back to 2.4 cmake_policy 5 new for add_definitions in tests --- CMakeLists.txt | 4 ++-- tests/CMakeLists.txt | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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) -- 2.47.1