From 3976ca234ff472e5b1494e88cdcdddd513dd333f Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Fri, 16 Nov 2018 16:39:28 +0000 Subject: Only set CMake policy command if policy exists --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3