diff options
| -rw-r--r-- | meta-oe/recipes-support/libsimplelog/libsimplelog/0001-allow-build-with-cmake-4.patch | 40 | ||||
| -rw-r--r-- | meta-oe/recipes-support/libsimplelog/libsimplelog_1.0.8.bb | 4 |
2 files changed, 42 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/libsimplelog/libsimplelog/0001-allow-build-with-cmake-4.patch b/meta-oe/recipes-support/libsimplelog/libsimplelog/0001-allow-build-with-cmake-4.patch new file mode 100644 index 0000000000..17adf92bb0 --- /dev/null +++ b/meta-oe/recipes-support/libsimplelog/libsimplelog/0001-allow-build-with-cmake-4.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From 77be1b3e7d6ff4261114424278413a679672bb92 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alper Ak <alperyasinak1@gmail.com> | ||
| 3 | Date: Wed, 9 Jul 2025 12:10:37 +0300 | ||
| 4 | Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ | ||
| 5 | compatibility | ||
| 6 | |||
| 7 | Fix: | ||
| 8 | |||
| 9 | | CMake Error in CMakeLists.txt: | ||
| 10 | | No cmake_minimum_required command is present. A line of code such as | ||
| 11 | | | ||
| 12 | | cmake_minimum_required(VERSION 4.0) | ||
| 13 | | | ||
| 14 | | should be added at the top of the file. The version specified may be lower | ||
| 15 | | if you wish to support older CMake versions for this project. For more | ||
| 16 | | information run "cmake --help-policy CMP0000". | ||
| 17 | | | ||
| 18 | | | ||
| 19 | | -- Configuring incomplete, errors occurred! | ||
| 20 | |||
| 21 | Upstream-Status: Submitted [https://github.com/thuanalg/simplelog-topic/pull/1] | ||
| 22 | |||
| 23 | Signed-off-by: Alper Ak <alperyasinak1@gmail.com> | ||
| 24 | --- | ||
| 25 | CMakeLists.txt | 2 ++ | ||
| 26 | 1 file changed, 2 insertions(+) | ||
| 27 | |||
| 28 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 29 | index dca80f1..0fc6db0 100644 | ||
| 30 | --- a/CMakeLists.txt | ||
| 31 | +++ b/CMakeLists.txt | ||
| 32 | @@ -1,3 +1,5 @@ | ||
| 33 | +cmake_minimum_required(VERSION 3.5) | ||
| 34 | + | ||
| 35 | # Add main.cpp file of the project root directory as a source file | ||
| 36 | project(simplelog_topic_project) | ||
| 37 | set(SOURCE_LIB_FILES src/simplelog.c ) | ||
| 38 | -- | ||
| 39 | 2.43.0 | ||
| 40 | |||
diff --git a/meta-oe/recipes-support/libsimplelog/libsimplelog_1.0.8.bb b/meta-oe/recipes-support/libsimplelog/libsimplelog_1.0.8.bb index 31dce12155..41b9d47686 100644 --- a/meta-oe/recipes-support/libsimplelog/libsimplelog_1.0.8.bb +++ b/meta-oe/recipes-support/libsimplelog/libsimplelog_1.0.8.bb | |||
| @@ -5,11 +5,11 @@ HOMEPAGE = "https://github.com/thuanalg/simplelog-topic" | |||
| 5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22cdd382a6275cb4c2e75c517952ac7c" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22cdd382a6275cb4c2e75c517952ac7c" |
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV}" | 8 | SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV} \ |
| 9 | file://0001-allow-build-with-cmake-4.patch" | ||
| 9 | 10 | ||
| 10 | SRCREV = "093d80b4006042b75a433a5e63760ae9bebad142" | 11 | SRCREV = "093d80b4006042b75a433a5e63760ae9bebad142" |
| 11 | 12 | ||
| 12 | |||
| 13 | inherit cmake | 13 | inherit cmake |
| 14 | 14 | ||
| 15 | # Specify any options you want to pass to cmake using EXTRA_OECMAKE: | 15 | # Specify any options you want to pass to cmake using EXTRA_OECMAKE: |
