telepathy-qt: CMake: Accept new CMake policy for versions up to 3.15

Alexandr Akulich kaffeine at kemper.freedesktop.org
Mon Nov 11 17:28:14 UTC 2019


Module: telepathy-qt
Branch: master
Commit: 8d8eeeef66686e5c49541f95889f8ddeeb39db67
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=8d8eeeef66686e5c49541f95889f8ddeeb39db67

Author: Alexander Akulich <akulichalexander at gmail.com>
Date:   Thu Nov  7 02:18:07 2019 +0300

CMake: Accept new CMake policy for versions up to 3.15

---

 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 679ceb30..3a9c7fde 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,10 @@ project(TelepathyQt)
 
 cmake_minimum_required(VERSION 3.5)
 
+if(${CMAKE_VERSION} VERSION_LESS 3.15)
+    cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
+endif()
+
 # Making releases:
 #   set the new version number:
 #     odd minor -> development series



More information about the telepathy-commits mailing list