aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-08-20 13:49:15 +0200
committerShauren <shauren.trinity@gmail.com>2024-08-20 13:49:15 +0200
commit8f95c84a0814b9d48a6d3db00f7dcfe5b1574d3b (patch)
tree05db9a22f61c2aa9aa3cc6e640510aa163055942 /CMakeLists.txt
parent15209a9cfe1ab6f3a75cbe175072d8bd66a3f5c1 (diff)
Build: Increase required CMake version to 3.24 and removed unneccessary cmake_policy() calls that are already handled by cmake_minimum_required()
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc306ab0ce1..3c0ec29fa32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-cmake_minimum_required(VERSION 3.18)
+cmake_minimum_required(VERSION 3.24)
# add this options before PROJECT keyword
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
@@ -17,13 +17,6 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
# Set projectname (must be done AFTER setting configurationtypes)
project(TrinityCore)
-# CMake policies (can not be handled elsewhere)
-cmake_policy(SET CMP0005 NEW)
-cmake_policy(SET CMP0043 NEW) # Ignore COMPILE_DEFINITIONS_<Config> properties
-cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted - prevents intepreting if(SOME_STRING_VARIABLE MATCHES "MSVC") as if(SOME_STRING_VARIABLE MATCHES "1")
-cmake_policy(SET CMP0067 NEW) # Honor language standard in try_compile() source-file signature
-cmake_policy(SET CMP0074 NEW) # find_package() uses <PackageName>_ROOT variables
-
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW) # find_package() uses upper-case <PACKAGENAME>_ROOT variables
endif()