aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2020-06-14 21:18:47 +0200
committerShauren <shauren.trinity@gmail.com>2020-06-16 09:29:31 +0200
commit18ad76722663c6e8cd462645b995080c67b5bff2 (patch)
tree7fe0c1cd08b2b6a41294adef023c1b0f437ddd49 /CMakeLists.txt
parentc3a7a604f42603901b7ee7c33f3dd4048e7f2c76 (diff)
CMake: Remove guards around CMP0043 and CMP0054
We require CMake >= 3.8 which includes the policies. CMP0043 OLD behaviour is still required by cotire.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c5d4d80c96..e09ffecb382 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,13 +20,8 @@ project(TrinityCore)
# CMake policies (can not be handled elsewhere)
cmake_policy(SET CMP0005 NEW)
-if(POLICY CMP0043)
- cmake_policy(SET CMP0043 NEW) # Disable 'Ignore COMPILE_DEFINITIONS_<Config> properties'
-endif()
-
-if(POLICY CMP0054)
- cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted - prevents intepreting if (SOME_STRING_VARIABLE MATCHES "MSVC") as if (SOME_STRING_VARIABLE MATCHES "1")
-endif()
+cmake_policy(SET CMP0043 OLD) # Disable 'Ignore COMPILE_DEFINITIONS_<Config> properties'
+cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted - prevents intepreting if (SOME_STRING_VARIABLE MATCHES "MSVC") as if (SOME_STRING_VARIABLE MATCHES "1")
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW) # find_package() uses <PackageName>_ROOT variables