diff options
| author | Alper Ak <alperyasinak1@gmail.com> | 2025-07-09 20:30:39 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-07-09 13:35:18 -0700 |
| commit | 882e039c1999922fb54239d42f7cdced09303cf0 (patch) | |
| tree | b8f95d682948e0c43fb2625d8cfa04948e8b2230 /meta-oe | |
| parent | ad2a75a0ac392f514c9fb7716111d7c85a0e8d71 (diff) | |
| download | meta-openembedded-882e039c1999922fb54239d42f7cdced09303cf0.tar.gz | |
libcbor: Add patch for CMake 4+ compatibility
Fix:
| CMake Error at CMakeLists.txt:1 (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>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-extended/libcbor/libcbor/0001-allow-build-with-cmake-4.patch | 40 | ||||
| -rwxr-xr-x | meta-oe/recipes-extended/libcbor/libcbor_0.12.0.bb | 5 |
2 files changed, 43 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/libcbor/libcbor/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-extended/libcbor/libcbor/0001-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..1edca539ba --- /dev/null +++ b/meta-oe/recipes-extended/libcbor/libcbor/0001-allow-build-with-cmake-4.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 4b34fd7b4d674eeba5e9572df1d88bafa1d100e3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
| 3 | Date: Wed, 9 Jul 2025 11:29:39 +0300 | ||
| 4 | Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ | ||
| 5 | compatibility | ||
| 6 | |||
| 7 | Fix: | ||
| 8 | |||
| 9 | | CMake Error at CMakeLists.txt:1 (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 | |||
| 21 | Upstream-Status: Backport [https://github.com/PJK/libcbor/commit/1183292d4695300785b272532c1e02d68840e4b8] | ||
| 22 | |||
| 23 | Signed-off-by: Alper Ak <alperyasinak1@gmail.com> | ||
| 24 | --- | ||
| 25 | CMakeLists.txt | 2 +- | ||
| 26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 27 | |||
| 28 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 29 | index 815675e..a9f9bd5 100644 | ||
| 30 | --- a/CMakeLists.txt | ||
| 31 | +++ b/CMakeLists.txt | ||
| 32 | @@ -1,4 +1,4 @@ | ||
| 33 | -cmake_minimum_required(VERSION 3.0) | ||
| 34 | +cmake_minimum_required(VERSION 3.5) | ||
| 35 | |||
| 36 | project(libcbor) | ||
| 37 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} | ||
| 38 | -- | ||
| 39 | 2.43.0 | ||
| 40 | |||
diff --git a/meta-oe/recipes-extended/libcbor/libcbor_0.12.0.bb b/meta-oe/recipes-extended/libcbor/libcbor_0.12.0.bb index 60c3c6fadd..fa48d23bde 100755 --- a/meta-oe/recipes-extended/libcbor/libcbor_0.12.0.bb +++ b/meta-oe/recipes-extended/libcbor/libcbor_0.12.0.bb | |||
| @@ -4,9 +4,10 @@ DESCRIPTION = "C library for parsing and generating CBOR, the general-purpose sc | |||
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f3b3881df62ca763a02d359a6e94071" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6f3b3881df62ca763a02d359a6e94071" |
| 6 | 6 | ||
| 7 | SRC_URI = "git://github.com/PJK/libcbor.git;protocol=https;branch=master" | 7 | SRC_URI = "git://github.com/PJK/libcbor.git;protocol=https;branch=master \ |
| 8 | SRCREV = "ae000f44e8d2a69e1f72a738f7c0b6b4b7cc4fbf" | 8 | file://0001-allow-build-with-cmake-4.patch" |
| 9 | 9 | ||
| 10 | SRCREV = "ae000f44e8d2a69e1f72a738f7c0b6b4b7cc4fbf" | ||
| 10 | 11 | ||
| 11 | inherit cmake | 12 | inherit cmake |
| 12 | 13 | ||
