Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ffc96b8d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Use a smoother way of setting policies

This way, we don't have to track which version of cmake introduced
which policies.
parent 5c4c3d40
......@@ -7,23 +7,31 @@ cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set(MIN_QT_VERSION 5.4.0)
set(MIN_FRAMEWORKS_VERSION 5.7.0)
cmake_policy(SET CMP0002 OLD)
#cmake_policy CMP0017 was introduced in version 2.8.4
if (NOT ${CMAKE_VERSION} VERSION_LESS 2.8.3)
if (POLICY CMP0002)
cmake_policy(SET CMP0002 OLD)
endif()
if (POLICY CMP0017)
cmake_policy(SET CMP0017 NEW)
endif ()
if (NOT ${CMAKE_VERSION} VERSION_LESS 2.8.12)
if (POLICY CMP0022)
cmake_policy(SET CMP0022 OLD)
endif ()
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.0.0)
if (POLICY CMP0026)
cmake_policy(SET CMP0026 OLD)
endif()
if (POLICY CMP0046)
cmake_policy(SET CMP0046 OLD)
endif ()
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.3.0)
if (POLICY CMP0059)
cmake_policy(SET CMP0059 OLD)
endif()
if (POLICY CMP0063)
cmake_policy(SET CMP0063 OLD)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment