fix(Cmake): using policy 0153 if exist (#18416)
This commit is contained in:
parent
22f2a8f731
commit
b78f83c6ec
@ -17,7 +17,10 @@ message(STATUS "CMake version: ${CMAKE_VERSION}")
|
|||||||
|
|
||||||
# CMake policies (can not be handled elsewhere)
|
# CMake policies (can not be handled elsewhere)
|
||||||
cmake_policy(SET CMP0005 NEW)
|
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)
|
# Set projectname (must be done AFTER setting configurationtypes)
|
||||||
project(AzerothCore VERSION 3.0.0 LANGUAGES CXX C)
|
project(AzerothCore VERSION 3.0.0 LANGUAGES CXX C)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user