From a6b6105a7f6ad60f1b2756f45149db3d1b198112 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 29 Jul 2015 15:44:21 +0200 Subject: [PATCH] Remove the warning about CMP0054 That is temporary. --- Installation/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 814c35d9d3e..70d7799b5c4 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -20,6 +20,13 @@ if(POLICY CMP0042) cmake_policy(SET CMP0042 OLD) endif() +# Compatibility with CMake 3.1 +if(POLICY CMP0054) + # http://www.cmake.org/cmake/help/v3.1/policy/CMP0054.html + # See the discussion https://github.com/CGAL/cgal/issues/189 + cmake_policy(SET CMP0054 OLD) +endif() + #-------------------------------------------------------------------------------------------------- #