From 8b2d34956cd4e68a25511ba4237213f24daa9ad0 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Sat, 13 Oct 2018 14:07:01 +1000 Subject: [PATCH] Conditional cmake policy CMP0003 and CMP0042 --- build/cmake/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index d724e10..bc38d30 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -8,8 +8,11 @@ cmake_minimum_required (VERSION 2.8.12) include(GNUInstallDirs) -if (COMMAND cmake_policy) +if(POLICY CMP0003) cmake_policy (SET CMP0003 NEW) +endif() + +if(POLICY CMP0042) cmake_policy (SET CMP0042 NEW) endif()