From 4cc47c37cb20b4e5ceb683b3ebcfeffaf248c065 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Tue, 23 Feb 2016 07:27:39 +0100 Subject: [PATCH] CMake: Bump policy version to 3.4 --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7c2609..d9f3516 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,10 @@ project(innoextract) cmake_minimum_required(VERSION 2.8) -if(POLICY CMP0054) - # CMake 3.1+: Only interpret if() arguments as variables or keywords when unquoted. - cmake_policy(SET CMP0054 NEW) +if(CMAKE_VERSION VERSION_GREATER 3.4) + cmake_policy(VERSION 3.4) +else() + cmake_policy(VERSION ${CMAKE_VERSION}) endif()