From f27f57e67fc72a8ed716ed2158374cab978498c1 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Fri, 15 Jan 2016 23:41:20 -0800 Subject: cmake: Don't check for cmake_policy We already require cmake 2.8 as minimum, so can expect to always have cmake_policy available. (bzr r14587) --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cda026af..cc5dbfe13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,11 +18,9 @@ set(INKSCAPE_VERSION 0.91+devel) set(PROJECT_NAME inkscape) set(CMAKE_INCLUDE_CURRENT_DIR TRUE) -if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 NEW) # don't be prolific with library paths - cmake_policy(SET CMP0005 NEW) # proper define quoting - cmake_policy(SET CMP0009 NEW) # don't follow symbolic links when using GLOB -endif() +cmake_policy(SET CMP0003 NEW) # don't be prolific with library paths +cmake_policy(SET CMP0005 NEW) # proper define quoting +cmake_policy(SET CMP0009 NEW) # don't follow symbolic links when using GLOB # workaround for omission in cmake 2.8.4's GNU.cmake, fixed in 2.8.5 if(CMAKE_COMPILER_IS_GNUCC) -- cgit v1.2.3