summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-12-31 09:09:10 +0000
committerPeter Powell <petpow@saberuk.com>2017-02-12 22:04:10 +0000
commitcbe0423149efa82c183758fc9d1783c745490928 (patch)
treeb2e6b8cec477579f87d58c2980715c7970e1367a
parentf5cf26cee10612ac46acb7c8c6d2317ef33425c5 (diff)
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.
-rw-r--r--CMakeLists.txt9
1 files 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)