diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2019-09-09 08:17:27 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-06-16 09:29:31 +0200 |
commit | 0f390606a1c4ec197c1b8124351b13f141f1e42b (patch) | |
tree | 2529bc5650921a5b5204be813d5b168a2fdfa790 /CMakeLists.txt | |
parent | c715e635cf3feb50ac61d30659e614aaa2cc0c63 (diff) |
Build/CMake: Set some policies to NEW (#23779)
* Build/CMake: Set CMP0005 to NEW
See https://cmake.org/cmake/help/v3.2/policy/CMP0005.html
* Build/CMake: Set CMP0043 to NEW
See https://cmake.org/cmake/help/v3.2/policy/CMP0043.html
* Build/CMake: Set CMP0074 to NEW
See https://cmake.org/cmake/help/v3.12/policy/CMP0074.html
(cherry picked from commit 18cc36bc67023dc9ca58e77733c2b8c74655cf86)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0dfb15dae85..a2e2c103416 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,15 +19,19 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) project(TrinityCore) # CMake policies (can not be handled elsewhere) -cmake_policy(SET CMP0005 OLD) +cmake_policy(SET CMP0005 NEW) if(POLICY CMP0043) - cmake_policy(SET CMP0043 OLD) # Disable 'Ignore COMPILE_DEFINITIONS_<Config> properties' + 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() +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) # find_package() uses <PackageName>_ROOT variables +endif() + # Set RPATH-handing (CMake parameters) set(CMAKE_SKIP_BUILD_RPATH 0) set(CMAKE_BUILD_WITH_INSTALL_RPATH 0) |