[Lemon-commits] Alpar Juttner: Restore cmake-2.8 compatibility (...
Lemon HG
hg at lemon.cs.elte.hu
Wed Jul 9 14:45:58 CEST 2014
details: http://lemon.cs.elte.hu/hg/lemon/rev/1552352f9798
changeset: 1322:1552352f9798
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Wed Jul 09 14:40:32 2014 +0200
description:
Restore cmake-2.8 compatibility (#502)
Fix cmake-2.8 incompatibility introduced in [fe4ff72e2f14]. Thanks
to amluto for reporting the regression
diffstat:
CMakeLists.txt | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (13 lines):
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,8 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-CMAKE_POLICY(SET CMP0048 OLD)
+IF(POLICY CMP0048)
+ CMAKE_POLICY(SET CMP0048 OLD)
+ENDIF(POLICY CMP0048)
SET(PROJECT_NAME "LEMON")
PROJECT(${PROJECT_NAME})
More information about the Lemon-commits
mailing list