Build/CMake: Fix build on older cmakes that don't support the recently added policy

This commit is contained in:
DDuarte
2014-07-30 15:52:05 +01:00
parent 202255d935
commit de3aed580e

View File

@@ -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_<Config> properties'
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD) # Disable 'Ignore COMPILE_DEFINITIONS_<Config> properties'
endif(POLICY CMP0043)
# add this options before PROJECT keyword
set(CMAKE_DISABLE_SOURCE_CHANGES ON)