mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 14:56:43 +01:00
libsimplelog: Add patch for CMake 4+ compatibility
Fix: | CMake Error in CMakeLists.txt: | No cmake_minimum_required command is present. A line of code such as | | cmake_minimum_required(VERSION 4.0) | | should be added at the top of the file. The version specified may be lower | if you wish to support older CMake versions for this project. For more | information run "cmake --help-policy CMP0000". | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
882e039c19
commit
f5b8dae3da
|
|
@ -0,0 +1,40 @@
|
|||
From 77be1b3e7d6ff4261114424278413a679672bb92 Mon Sep 17 00:00:00 2001
|
||||
From: Alper Ak <alperyasinak1@gmail.com>
|
||||
Date: Wed, 9 Jul 2025 12:10:37 +0300
|
||||
Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
|
||||
compatibility
|
||||
|
||||
Fix:
|
||||
|
||||
| CMake Error in CMakeLists.txt:
|
||||
| No cmake_minimum_required command is present. A line of code such as
|
||||
|
|
||||
| cmake_minimum_required(VERSION 4.0)
|
||||
|
|
||||
| should be added at the top of the file. The version specified may be lower
|
||||
| if you wish to support older CMake versions for this project. For more
|
||||
| information run "cmake --help-policy CMP0000".
|
||||
|
|
||||
|
|
||||
| -- Configuring incomplete, errors occurred!
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/thuanalg/simplelog-topic/pull/1]
|
||||
|
||||
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index dca80f1..0fc6db0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,3 +1,5 @@
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
+
|
||||
# Add main.cpp file of the project root directory as a source file
|
||||
project(simplelog_topic_project)
|
||||
set(SOURCE_LIB_FILES src/simplelog.c )
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
|
@ -5,11 +5,11 @@ HOMEPAGE = "https://github.com/thuanalg/simplelog-topic"
|
|||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=22cdd382a6275cb4c2e75c517952ac7c"
|
||||
|
||||
SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV}"
|
||||
SRC_URI = "git://github.com/thuanalg/simplelog-topic.git;branch=main;protocol=https;tag=v${PV} \
|
||||
file://0001-allow-build-with-cmake-4.patch"
|
||||
|
||||
SRCREV = "093d80b4006042b75a433a5e63760ae9bebad142"
|
||||
|
||||
|
||||
inherit cmake
|
||||
|
||||
# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user