summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-04-25 20:55:44 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-04-25 20:55:44 +0000
commitb190394114fb32c0636aa8deb94bf2108616a4d4 (patch)
treee965048a670b897c52b539d1d9c6d6f8fabdd0a9 /CMakeLists.txt
parentCMake: Fix WIN32 build (diff)
downloadinkscape-b190394114fb32c0636aa8deb94bf2108616a4d4.tar.gz
inkscape-b190394114fb32c0636aa8deb94bf2108616a4d4.zip
CMake: put policies at the top before running any other code
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files 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)