mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
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>
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
From 4ce4c135f83f9d7894ccbb0901391f5cbf2b1935 Mon Sep 17 00:00:00 2001
|
|
From: Alper Ak <alperyasinak1@gmail.com>
|
|
Date: Mon, 7 Jul 2025 21:34:32 +0300
|
|
Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
|
|
compatibility
|
|
|
|
| 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: Pending
|
|
|
|
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
|
|
---
|
|
CMakeLists.txt | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 57edba6..bdfb8bb 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1,3 +1,4 @@
|
|
+cmake_minimum_required(VERSION 3.5)
|
|
PROJECT (cdrkit C)
|
|
SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit)
|
|
|
|
--
|
|
2.43.0
|
|
|