From 8a79fd930551c8f690eb8afbf57febb823ce5f83 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 19 Dec 2018 14:24:17 +0100 Subject: [PATCH] [CMake] Set policy 0074 to NEW. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a04ec9b3ddf..c2333af6326 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,12 @@ cmake_minimum_required(VERSION 3.3) # Set CMake policies cmake_policy(SET CMP0011 NEW) cmake_policy(SET CMP0054 NEW) -if(${CMAKE_VERSION} VERSION_GREATER 3.9.6) +if(POLICY 0071) cmake_policy(SET CMP0071 NEW) endif() +if(POLICY 0074) + cmake_policy(SET CMP0074 NEW) +endif() if(WIN32 AND NOT ${CMAKE_GENERATOR} STREQUAL Ninja AND -- GitLab