summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2018-11-16 16:39:28 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2018-11-16 16:39:28 +0000
commit3976ca234ff472e5b1494e88cdcdddd513dd333f (patch)
tree7c6d6e54ee26eff0c2ae1a89b1a8051ad0268dbe
parentUpdate CMake policy 0075 for check-executable linkage (diff)
downloadinkscape-3976ca234ff472e5b1494e88cdcdddd513dd333f.tar.gz
inkscape-3976ca234ff472e5b1494e88cdcdddd513dd333f.zip
Only set CMake policy command if policy exists
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f831cf3d8..f6bb83c99 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,10 @@ cmake_minimum_required(VERSION 2.8.8)
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
-cmake_policy(SET CMP0075 NEW) # link check-executable to CMAKE_REQUIRED_LIBRARIES (CMake 3.12.1)
+
+if(POLICY CMP0075)
+ cmake_policy(SET CMP0075 NEW) # link check-executable to CMAKE_REQUIRED_LIBRARIES (CMake 3.12.1)
+endif(POLICY CMP0075)
message("------------------------------")
message("Building Makefile for Inkscape")