Skip to content

Commit c592247

Browse files
psturm-swiftjcar87
andauthored
libcbor: add version 0.13.0 (#28509)
* libcbor: Bump to version 0.13.0 * libcbor: add cmake requirement * cmake 4 support * Fix --------- Co-authored-by: Luis Caro Campos <[email protected]>
1 parent 5e93b7e commit c592247

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

recipes/libcbor/all/conandata.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
sources:
2+
"0.13.0":
3+
url: "https://github.com/PJK/libcbor/archive/v0.13.0.tar.gz"
4+
sha256: "95a7f0dd333fd1dce3e4f92691ca8be38227b27887599b21cd3c4f6d6a7abb10"
25
"0.12.0":
36
url: "https://github.com/PJK/libcbor/archive/v0.12.0.tar.gz"
47
sha256: "5368add109db559f546d7ed10f440f39a273b073daa8da4abffc83815069fa7f"

recipes/libcbor/all/conanfile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from conan import ConanFile
22
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
33
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir
4+
from conan.tools.scm import Version
45
import os
56

67
required_conan_version = ">=1.53.0"
@@ -49,6 +50,9 @@ def source(self):
4950
get(self, **self.conan_data["sources"][self.version],
5051
destination=self.source_folder, strip_root=True)
5152

53+
def requirements(self):
54+
self.tool_requires("cmake/[>=3.21]") # for C23 support
55+
5256
def generate(self):
5357
tc = CMakeToolchain(self)
5458
tc.variables["WITH_EXAMPLES"] = False
@@ -58,6 +62,8 @@ def generate(self):
5862
tc.variables["CBOR_BUFFER_GROWTH"] = self.options.buffer_growth_factor
5963
# Relocatable shared libs on macOS
6064
tc.variables["CMAKE_MACOSX_RPATH"] = True
65+
if Version(self.version) < "0.13.0":
66+
tc.cache_variables["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5"
6167
tc.generate()
6268

6369
def build(self):

recipes/libcbor/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
versions:
2+
"0.13.0":
3+
folder: "all"
24
"0.12.0":
35
folder: "all"
46
"0.11.0":

0 commit comments

Comments
 (0)