From 68eb6ef27b2fe80bfd70838dc25bec807c0abc36 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Tue, 27 Feb 2018 14:25:59 +0500 Subject: [PATCH] Remove defined cmake_policies CMP0012 - OLD marked as deprecated for >=cmake-3.1 and will be removed CMP0015 - does not affect to build process CMP0042 - already NEW for >=cmake-3.1 Fixes #505 --- CMakeLists.txt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 059ce9e..c214cc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,23 +3,9 @@ ### # see http://www.cmake.org/Wiki/CMake_Policies cmake_minimum_required(VERSION 3.1) -# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0012 -if(POLICY CMP0012) - cmake_policy(SET CMP0012 OLD) -endif() -# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0015 -if(POLICY CMP0015) - cmake_policy(SET CMP0015 OLD) -endif() -# see https://cmake.org/cmake/help/latest/policy/CMP0042.html -if(POLICY CMP0042) - # Enable MACOSX_RPATH by default. - cmake_policy(SET CMP0042 NEW) -endif() include(CheckCXXCompilerFlag) - ### ### Project settings ###