fix(Cmake): using policy 0153 if exist (#18416)

This commit is contained in:
Winfidonarleyan 2024-02-26 20:02:02 +07:00 committed by GitHub
parent 22f2a8f731
commit b78f83c6ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)