mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/mraa: 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
f3192e35e2
commit
b1c899820e
46
package/mraa/0003-cmake-bump-minimum-version.patch
Normal file
46
package/mraa/0003-cmake-bump-minimum-version.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
From 92a1337e110464bbb3aaba2b3ede77dc13b3f175 Mon Sep 17 00:00:00 2001
|
||||
From: Alex T <alext.mkrs@gmail.com>
|
||||
Date: Sun, 2 Nov 2025 19:06:06 +0100
|
||||
Subject: [PATCH] cmake: bump minimum version to address a deprecation warning
|
||||
|
||||
This fixes the following warning shown while configuring:
|
||||
|
||||
[cmake] CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
|
||||
[cmake] Compatibility with CMake < 3.10 will be removed from a future version of
|
||||
[cmake] CMake.
|
||||
|
||||
We don't have a clearly defined supported distro/versions list, so I
|
||||
took Ubuntu 22.04 as arguably the oldest one we'd want to support for
|
||||
the reference point. It has CMake 3.22, released in July 2022.
|
||||
|
||||
Signed-off-by: Alex T <alext.mkrs@gmail.com>
|
||||
|
||||
Upstream: https://github.com/eclipse/mraa/commit/92a1337e110464bbb3aaba2b3ede77dc13b3f175
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
CMakeLists.txt | 10 ++--------
|
||||
1 file changed, 2 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7a13eeb81..34ded2b75 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,15 +1,9 @@
|
||||
-cmake_minimum_required (VERSION 2.8.11)
|
||||
+cmake_minimum_required (VERSION 3.22)
|
||||
project (mraa C)
|
||||
|
||||
FIND_PACKAGE (Threads REQUIRED)
|
||||
|
||||
-if (CMAKE_VERSION VERSION_LESS "3.1")
|
||||
- if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
- set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
|
||||
- endif ()
|
||||
-else ()
|
||||
- set (CMAKE_C_STANDARD 99)
|
||||
-endif ()
|
||||
+set (CMAKE_C_STANDARD 99)
|
||||
|
||||
option (BUILDCPP "Enable C++ (needed by FTDI4222 and tests)" ON)
|
||||
|
||||
Reference in New Issue
Block a user