Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From e85e28ac7526ebed658c046e5dfc93fe83db5955 Mon Sep 17 00:00:00 2001
From: Ilies CHERGUI <ichergui@nvidia.com>
Date: Tue, 19 Aug 2025 14:43:50 +0100
Subject: [PATCH 2/2] cmake: Set minimum required version to 3.5 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!

Upstream-Status: Inappropriate [OE-specific]
Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68cacaf..6dae1eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.5)

project(SafeInt CXX)

--
2.34.1

1 change: 1 addition & 0 deletions recipes-support/safeint/safeint_3.0.28.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=052fd523d0ea51ed2fb75a46627e23bf"
SRC_URI = " \
git://github.com/dcleblanc/SafeInt.git;protocol=https;nobranch=1;tag=${PV} \
file://0001-Updates-for-OE-cross-builds.patch \
file://0002-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backport - dcleblanc/SafeInt#39 this is already merged upstream

"
SRCREV = "4cafc9196c4da9c817992b20f5253ef967685bf8"

Expand Down