diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-11-20 11:50:27 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-11-20 11:50:27 +0100 |
commit | 98c609248b421338f7df7eb0327433a9cf638cb0 (patch) | |
tree | 61622aa9f32302caba84f1992217304c2bbd13f5 /CMakeLists.txt | |
parent | bbda717e9304aa0734dde55b1839cd819875f1cf (diff) | |
download | mariadb-git-98c609248b421338f7df7eb0327433a9cf638cb0.tar.gz |
set CMP0022 policy to avoid cmake warnings
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ceaf7d17df9..c63fe3e42f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,12 @@ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6) CMAKE_POLICY(VERSION 2.8) endif() +# explicitly set the policy to OLD +# (cannot use NEW, not everyone is on cmake-2.8.12 yet) +IF(POLICY CMP0022) + CMAKE_POLICY(SET CMP0022 OLD) +ENDIF() + MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}") SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) |