fix(Cmake): using policy 0153 if exist (#18416)
This commit is contained in:
parent
22f2a8f731
commit
b78f83c6ec
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue