From b190394114fb32c0636aa8deb94bf2108616a4d4 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Wed, 25 Apr 2018 22:55:44 +0200 Subject: CMake: put policies at the top before running any other code --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99291c7e5..6ed211420 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,9 @@ cmake_minimum_required(VERSION 2.8.2) +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 + message("------------------------------") message("Building Makefile for Inkscape") message("------------------------------") @@ -43,10 +47,6 @@ else() SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/inkscape") 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 - # this can be removed if/when cmake 3.1 is made the minimum required version set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON) -- cgit v1.2.3