summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-multimedia/recipes-multimedia/clight/libmodule/0001-Update-cmake_minimum_required-to-3.5.patch66
-rw-r--r--meta-multimedia/recipes-multimedia/clight/libmodule_5.0.1.bb18
2 files changed, 84 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/clight/libmodule/0001-Update-cmake_minimum_required-to-3.5.patch b/meta-multimedia/recipes-multimedia/clight/libmodule/0001-Update-cmake_minimum_required-to-3.5.patch
new file mode 100644
index 0000000000..5e01864643
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/clight/libmodule/0001-Update-cmake_minimum_required-to-3.5.patch
@@ -0,0 +1,66 @@
1From 858aa0dcd8cba8288db3f10b1e6622ac79ae63e3 Mon Sep 17 00:00:00 2001
2From: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
3Date: Thu, 14 Aug 2025 14:51:55 +0800
4Subject: [PATCH] Update cmake_minimum_required to 3.5
5
6This supports compilation with cmake-4.0.0.
7
8Fixes:
9
10Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
11to tell CMake that the project requires at least <min> but has been updated
12to work with policies introduced by <max> or earlier.
13Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
14
15Upstream-Status: Submitted [https://github.com/FedeDP/libmodule/pull/21]
16Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
17---
18 CMakeLists.txt | 2 +-
19 Samples/CMakeLists.txt | 2 +-
20 docs/CMakeLists.txt | 2 +-
21 tests/CMakeLists.txt | 2 +-
22 4 files changed, 4 insertions(+), 4 deletions(-)
23
24diff --git a/CMakeLists.txt b/CMakeLists.txt
25index 349c2be..a3301ba 100644
26--- a/CMakeLists.txt
27+++ b/CMakeLists.txt
28@@ -1,4 +1,4 @@
29-cmake_minimum_required (VERSION 3.3.2)
30+cmake_minimum_required (VERSION 3.5)
31
32 project(libmodule VERSION 5.0.1 LANGUAGES C CXX)
33
34diff --git a/Samples/CMakeLists.txt b/Samples/CMakeLists.txt
35index 9b369e3..2bc32c0 100644
36--- a/Samples/CMakeLists.txt
37+++ b/Samples/CMakeLists.txt
38@@ -1,4 +1,4 @@
39-cmake_minimum_required(VERSION 3.0)
40+cmake_minimum_required(VERSION 3.5)
41
42 file(GLOB EASY_SRC Easy/*.c)
43 file(GLOB MULTICTX_SRC MultiCtx/*.c)
44diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt
45index b39f0e8..2e26c94 100644
46--- a/docs/CMakeLists.txt
47+++ b/docs/CMakeLists.txt
48@@ -1,4 +1,4 @@
49-cmake_minimum_required(VERSION 3.0)
50+cmake_minimum_required(VERSION 3.5)
51
52 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
53
54diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
55index e5ffbf4..225a3a8 100644
56--- a/tests/CMakeLists.txt
57+++ b/tests/CMakeLists.txt
58@@ -1,4 +1,4 @@
59-cmake_minimum_required(VERSION 3.0)
60+cmake_minimum_required(VERSION 3.5)
61
62 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
63
64--
652.43.0
66
diff --git a/meta-multimedia/recipes-multimedia/clight/libmodule_5.0.1.bb b/meta-multimedia/recipes-multimedia/clight/libmodule_5.0.1.bb
new file mode 100644
index 0000000000..7fed48f2f7
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/clight/libmodule_5.0.1.bb
@@ -0,0 +1,18 @@
1SUMMARY = "Small and simple C actor library for modular projects"
2HOMEPAGE = "https://github.com/FedeDP/libmodule"
3SECTION = "libs"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=4f3c068505fd5a09e90662bfca90ad04"
7
8SRCREV = "3f60063e98631ce3fd25f70428b67ef15025597f"
9SRC_URI = "git://github.com/FedeDP/${BPN};protocol=https;branch=master;tag=${PV} \
10 file://0001-Update-cmake_minimum_required-to-3.5.patch \
11"
12
13inherit cmake pkgconfig
14
15FILES:${PN} += " \
16 ${libdir}/* \
17 ${datadir}/* \
18"