blob: 27c91eba2ad086a8a396a1c7b3a989b3cb84b4da (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
From 63eefc63eb3637dfd246509b28a67e1a6f1fd158 Mon Sep 17 00:00:00 2001
From: Allen Winter <winter@kde.org>
Date: Thu, 19 Sep 2024 11:20:10 -0400
Subject: [PATCH 1/2] Require CMake version 3.20 or higher
CMake v3.20 adds the cmake_path() commands
(cherry picked from commit 49149c02007a19ed143423724041ee02440add96)
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3c61570e..0cc03472 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,7 @@
# Build with the thread sanitizer (requires gcc or clang)
#
-cmake_minimum_required(VERSION 3.5.0) #first line, to shutup a cygwin warning
+cmake_minimum_required(VERSION 3.20.0)
project(libical C) #CXX is optional for the bindings
cmake_policy(SET CMP0003 NEW)
--
2.51.0
From 9ea2ab20c3caffe782b7852777de4c25c9c20521 Mon Sep 17 00:00:00 2001
From: Yegor Yefremov <yegorslists@googlemail.com>
Date: Mon, 5 May 2025 16:04:15 +0200
Subject: [PATCH 2/2] CMakeLists.txt: clean up policies
All these policies are already enabled due to the following call:
cmake_minimum_required(VERSION 3.20.0)
(cherry picked from commit bd8c3d384f4fb6528f28da8681f39dbb6ca14118)
---
CMakeLists.txt | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0cc03472..80178fb9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,17 +91,6 @@
cmake_minimum_required(VERSION 3.20.0)
project(libical C) #CXX is optional for the bindings
-cmake_policy(SET CMP0003 NEW)
-if(POLICY CMP0042)
- cmake_policy(SET CMP0042 NEW)
-endif()
-if(POLICY CMP0054)
- cmake_policy(SET CMP0054 NEW)
-endif()
-if(POLICY CMP0074)
- cmake_policy(SET CMP0074 NEW) #don't warn about ICU_ROOT envvar
-endif()
-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Kitware/modules")
--
2.51.0
|