diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-07-06 04:03:58 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-08-12 11:37:42 +0200 |
commit | 6b53f9d781cc19cbec96c3eb048e6407021685a2 (patch) | |
tree | 71379cc76e9f8294ccabca3a40ed2e7d509c7c5a /CMakeLists.txt | |
parent | 96b8909062c0b4df654f11057905b1e31398f88f (diff) | |
download | mariadb-git-6b53f9d781cc19cbec96c3eb048e6407021685a2.tar.gz |
MDEV-16662 CMake warnings: CMP0026
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 94e38658697..0cd4028ac75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,15 +19,11 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7) IF(POLICY CMP0022) CMAKE_POLICY(SET CMP0022 NEW) ENDIF() - -# We use the LOCATION target property (CMP0026) -# and get_target_property() for non-existent targets (CMP0045) -# and INSTALL_NAME_DIR (CMP0042) -IF(CMAKE_VERSION VERSION_EQUAL "3.0.0" OR - CMAKE_VERSION VERSION_GREATER "3.0.0") - CMAKE_POLICY(SET CMP0026 OLD) - CMAKE_POLICY(SET CMP0045 OLD) - CMAKE_POLICY(SET CMP0042 OLD) +IF(POLICY CMP0042) + CMAKE_POLICY(SET CMP0042 OLD) +ENDIF() +IF(POLICY CMP0045) + CMAKE_POLICY(SET CMP0045 OLD) ENDIF() IF(POLICY CMP0054) CMAKE_POLICY(SET CMP0054 NEW) |