Skip to content

Commit 5efe9fe

Browse files
committed
Fix minimum CMake version error
1 parent 1ab1ba1 commit 5efe9fe

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
From 1183292d4695300785b272532c1e02d68840e4b8 Mon Sep 17 00:00:00 2001
2+
From: PJK <me@pavelkalvoda.com>
3+
Date: Fri, 4 Apr 2025 23:19:13 +0200
4+
Subject: [PATCH] Set cmake_minimum_required to 3.5
5+
6+
Fixed https://github.com/PJK/libcbor/issues/351
7+
---
8+
CMakeLists.txt | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/CMakeLists.txt b/CMakeLists.txt
12+
index 815675ed..a9f9bd56 100644
13+
--- a/CMakeLists.txt
14+
+++ b/CMakeLists.txt
15+
@@ -1,4 +1,4 @@
16+
-cmake_minimum_required(VERSION 3.0)
17+
+cmake_minimum_required(VERSION 3.5)
18+
19+
project(libcbor)
20+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}

gvsbuild/projects/libcbor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def __init__(self):
2929
archive_filename="libcbor-{version}.tar.gz",
3030
hash="5368add109db559f546d7ed10f440f39a273b073daa8da4abffc83815069fa7f",
3131
dependencies=["cmake", "ninja"],
32+
patches=["001-fix-minimum-cmake-version.patch"],
3233
)
3334

3435
def build(self):

0 commit comments

Comments
 (0)