From 711572507dd6a4a4df0db7e7166805ef217cc779 Mon Sep 17 00:00:00 2001 From: hsc Date: Fri, 29 Jun 2012 22:51:14 +0000 Subject: [PATCH] cmake compatibility fix *sigh* git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1392 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 44507521..8658dfbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,10 @@ # cmake 2.6 might suffice, but we don't test it (even Debian stable has 2.8.2) cmake_minimum_required(VERSION 2.8.2) -# system cmake modules take precedence over those in CMAKE_MODULE_PATH -# (makes cmake 2.8.7 happy) -cmake_policy(SET CMP0017 NEW) +if("${CMAKE_VERSION}" VERSION_GREATER 2.8.3) + # system cmake modules take precedence over those in CMAKE_MODULE_PATH + # (makes cmake 2.8.4 and newer) + cmake_policy(SET CMP0017 NEW) +endif("${CMAKE_VERSION}" VERSION_GREATER 2.8.3) PROJECT(Fail*)