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)