mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/yaml-cpp: fix cmake 4 compatibility
Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
d4bb95b86e
commit
92fb5e03ce
@@ -0,0 +1,26 @@
|
|||||||
|
From c2680200486572baf8221ba052ef50b58ecd816e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Craig Scott <craig.scott@crascit.com>
|
||||||
|
Date: Thu, 17 Aug 2023 08:54:05 +1000
|
||||||
|
Subject: [PATCH] Specify CMake policy range to avoid deprecation warning
|
||||||
|
(#1211)
|
||||||
|
|
||||||
|
Upstream: https://github.com/jbeder/yaml-cpp/commit/c2680200486572baf8221ba052ef50b58ecd816e
|
||||||
|
|
||||||
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 46dc18059..1ae92e2b7 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
-# 3.5 is actually available almost everywhere, but this a good minimum
|
||||||
|
-cmake_minimum_required(VERSION 3.4)
|
||||||
|
+# 3.5 is actually available almost everywhere, but this a good minimum.
|
||||||
|
+# 3.14 as the upper policy limit avoids CMake deprecation warnings.
|
||||||
|
+cmake_minimum_required(VERSION 3.4...3.14)
|
||||||
|
|
||||||
|
# enable MSVC_RUNTIME_LIBRARY target property
|
||||||
|
# see https://cmake.org/cmake/help/latest/policy/CMP0091.html
|
||||||
Reference in New Issue
Block a user