From b78f83c6ecbc8d84e591271fc0a2065303159f4f Mon Sep 17 00:00:00 2001 From: Winfidonarleyan Date: Mon, 26 Feb 2024 20:02:02 +0700 Subject: fix(Cmake): using policy 0153 if exist (#18416) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3