From de3aed580e3d25481be297e898ad9b58dcbae78a Mon Sep 17 00:00:00 2001 From: DDuarte Date: Wed, 30 Jul 2014 15:52:05 +0100 Subject: Build/CMake: Fix build on older cmakes that don't support the recently added policy --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c54da4d080..2341cb7b96d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,9 @@ project(TrinityCore) # CMake policies (can not be handled elsewhere) cmake_minimum_required(VERSION 2.8.9) cmake_policy(SET CMP0005 OLD) -cmake_policy(SET CMP0043 OLD) # Disable 'Ignore COMPILE_DEFINITIONS_ properties' +if(POLICY CMP0043) + cmake_policy(SET CMP0043 OLD) # Disable 'Ignore COMPILE_DEFINITIONS_ properties' +endif(POLICY CMP0043) # add this options before PROJECT keyword set(CMAKE_DISABLE_SOURCE_CHANGES ON) -- cgit v1.2.3