diff options
author | DDuarte <dnpd.dd@gmail.com> | 2014-07-30 15:52:05 +0100 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2014-07-30 15:52:05 +0100 |
commit | de3aed580e3d25481be297e898ad9b58dcbae78a (patch) | |
tree | 101da5fc2ade32c264d507f1e51fe561b8642a3c | |
parent | 202255d935969b7e5e5702b986504192f1ba3f5d (diff) |
Build/CMake: Fix build on older cmakes that don't support the recently added policy
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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_<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) |