From cbe0423149efa82c183758fc9d1783c745490928 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 31 Dec 2015 09:09:10 +0000 Subject: Cleanup CMake policy usage. - CMP0003 has been the default since 2.6 so there is no need to enable this. - CMP0007 and CMP0026 always exist on 3.0+ so there is no need to check that they exists. --- CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 477d54e55..d39624323 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,8 @@ # This usage of CMake requires at least version 3.0 cmake_minimum_required(VERSION 3.0 FATAL_ERROR) -cmake_policy(SET CMP0003 NEW) -if(POLICY CMP0026) - cmake_policy(SET CMP0026 OLD) -endif() -if(POLICY CMP0007) - cmake_policy(SET CMP0007 OLD) -endif() +cmake_policy(SET CMP0007 OLD) +cmake_policy(SET CMP0026 OLD) # Set the project as C++ primarily, but have C enabled for the checks required later project(Anope CXX) -- cgit