summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-11-30 10:09:08 +0000
committerSadie Powell <sadie@witchery.services>2021-11-30 10:11:17 +0000
commit17fa704278a99aeac4e59df1bf58e63d88357788 (patch)
tree76ad29f155284ebadbf828b8025cfbebd55fb25d /CMakeLists.txt
parentb9ccd4bb0bd9da7edb114366d47f3cadf3caee16 (diff)
CMake warnings CMP0003 and CMP0007 are not necessary.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b1a2d1be0..fce875abe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,5 @@
# This usage of CMake requires at least version 3.8
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
- if(POLICY CMP0007)
- cmake_policy(SET CMP0007 OLD)
- endif()
-endif()
# Set the project as C++ primarily, but have C enabled for the checks required later
project(Anope CXX)
@@ -342,7 +336,6 @@ file(STRINGS ${Anope_SOURCE_DIR}/src/version.sh VERSIONS REGEX "^VERSION_")
# Iterate through the strings found
foreach(VERSION_STR ${VERSIONS})
string(REGEX REPLACE "^VERSION_([A-Z]+)=\"?([^\"]*)\"?$" "\\1;\\2" VERSION_OUT ${VERSION_STR})
- # Depends on CMP0007 OLD
list(LENGTH VERSION_OUT VERSION_LEN)
list(GET VERSION_OUT 0 VERSION_TYPE)
if(${VERSION_LEN} GREATER 1)