summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-07-09 20:30:49 +0300
committerKhem Raj <raj.khem@gmail.com>2025-07-09 13:35:19 -0700
commitfea7800935da29821e7874bce2a89d83a1a878b5 (patch)
tree7cc2868bfac5ae9451be19d623d4263938ae4616
parent38c37d867c228d8ac1e650bf7f7186e7b89c5c69 (diff)
downloadmeta-openembedded-fea7800935da29821e7874bce2a89d83a1a878b5.tar.gz
dlt-daemon: Add patch for CMake 4+ compatibility
Fix: | CMake Error at CMakeLists.txt:17 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch99
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb1
2 files changed, 100 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch
new file mode 100644
index 0000000000..ac5fec5684
--- /dev/null
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch
@@ -0,0 +1,99 @@
1From ae23f2cccc169874d89903cad24bf36e19bef659 Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Wed, 9 Jul 2025 18:18:33 +0300
4Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
5 compatibility
6
7Fix:
8
9| CMake Error at CMakeLists.txt:17 (cmake_minimum_required):
10| Compatibility with CMake < 3.5 has been removed from CMake.
11|
12| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
13| to tell CMake that the project requires at least <min> but has been updated
14| to work with policies introduced by <max> or earlier.
15|
16| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
17|
18|
19| -- Configuring incomplete, errors occurred!
20
21Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/755]
22
23Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
24---
25 CMakeLists.txt | 2 +-
26 examples/example1/CMakeLists.txt | 2 +-
27 examples/example2/CMakeLists.txt | 2 +-
28 examples/example3/CMakeLists.txt | 2 +-
29 examples/example4/CMakeLists.txt | 2 +-
30 5 files changed, 5 insertions(+), 5 deletions(-)
31
32diff --git a/CMakeLists.txt b/CMakeLists.txt
33index 94185b8..2a0f619 100644
34--- a/CMakeLists.txt
35+++ b/CMakeLists.txt
36@@ -14,7 +14,7 @@
37 #######
38
39 # Set minimum Cmake version and setup policy behavior
40-cmake_minimum_required(VERSION 3.3)
41+cmake_minimum_required(VERSION 3.5)
42
43 if(${CMAKE_VERSION} VERSION_GREATER "3.20" OR ${CMAKE_VERSION} VERSION_EQUAL "3.20")
44 cmake_policy(SET CMP0115 OLD)
45diff --git a/examples/example1/CMakeLists.txt b/examples/example1/CMakeLists.txt
46index 60644a1..44cd053 100644
47--- a/examples/example1/CMakeLists.txt
48+++ b/examples/example1/CMakeLists.txt
49@@ -17,7 +17,7 @@
50 # DLT example implementation
51 #
52
53-cmake_minimum_required( VERSION 2.6 )
54+cmake_minimum_required( VERSION 3.5 )
55 project( automotive-dlt-example1 )
56
57 #
58diff --git a/examples/example2/CMakeLists.txt b/examples/example2/CMakeLists.txt
59index 66a4f24..a8efbcf 100644
60--- a/examples/example2/CMakeLists.txt
61+++ b/examples/example2/CMakeLists.txt
62@@ -17,7 +17,7 @@
63 # DLT example implementation
64 #
65
66-cmake_minimum_required( VERSION 2.6 )
67+cmake_minimum_required( VERSION 3.5 )
68 project( automotive-dlt-example2 )
69
70 #
71diff --git a/examples/example3/CMakeLists.txt b/examples/example3/CMakeLists.txt
72index 45b7467..4d4958d 100644
73--- a/examples/example3/CMakeLists.txt
74+++ b/examples/example3/CMakeLists.txt
75@@ -17,7 +17,7 @@
76 # DLT example implementation
77 #
78
79-cmake_minimum_required( VERSION 2.6 )
80+cmake_minimum_required( VERSION 3.5 )
81 project( automotive-dlt-example3 )
82
83 #
84diff --git a/examples/example4/CMakeLists.txt b/examples/example4/CMakeLists.txt
85index 53a4fad..161c333 100644
86--- a/examples/example4/CMakeLists.txt
87+++ b/examples/example4/CMakeLists.txt
88@@ -17,7 +17,7 @@
89 # DLT example implementation
90 #
91
92-cmake_minimum_required( VERSION 2.6 )
93+cmake_minimum_required( VERSION 3.5 )
94 project( automotive-dlt-example4 )
95
96 #
97--
982.43.0
99
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
index 8b48d20aac..82edde6c9d 100644
--- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
@@ -20,6 +20,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
20 file://544.patch \ 20 file://544.patch \
21 file://567.patch \ 21 file://567.patch \
22 file://0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch \ 22 file://0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch \
23 file://0003-allow-build-with-cmake-4.patch \
23 " 24 "
24SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f" 25SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f"
25 26