summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorWinfidonarleyan <dowlandtop@yandex.com>2024-02-26 20:02:02 +0700
committerGitHub <noreply@github.com>2024-02-26 20:02:02 +0700
commitb78f83c6ecbc8d84e591271fc0a2065303159f4f (patch)
tree576cf716424a59d4073505599da55749a9c20c78 /CMakeLists.txt
parent22f2a8f731cb5565b1871cdd506fd07290fbb390 (diff)
fix(Cmake): using policy 0153 if exist (#18416)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f4b0f49790..2d9d4902a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,10 @@ message(STATUS "CMake version: ${CMAKE_VERSION}")
# CMake policies (can not be handled elsewhere)
cmake_policy(SET CMP0005 NEW)
-cmake_policy(SET CMP0153 OLD)
+
+if (POLICY CMP0153)
+ cmake_policy(SET CMP0153 OLD)
+endif()
# Set projectname (must be done AFTER setting configurationtypes)
project(AzerothCore VERSION 3.0.0 LANGUAGES CXX C)