summaryrefslogtreecommitdiff
path: root/media-libs/coin/files/coin-4.0.0-0001-updated-to-cmake-3.14.patch
blob: c33cf4e2b8b11809654ef5bc40fd0e91b3f82a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 962e613609ba93301999f83e283b7f489dfac503 Mon Sep 17 00:00:00 2001
From: Giampiero Gabbiani <giampiero@gabbiani.org>
Date: Fri, 10 Jan 2020 14:47:38 +0100
Subject: [PATCH] updated to cmake 3.14

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f32f6ffe3..3ce3a0d3a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,8 @@
+if (POLICY  CMP0054)
+  # CMake version 3.14.5 warns when the policy is not set and uses OLD behaviour
+  cmake_policy(SET CMP0054 NEW)
+endif()
+
 cmake_minimum_required(VERSION 3.0)
 
 set(COIN_MAJOR_VERSION 4)
-- 
2.26.2