[eccodes] Fix missing tl-expected dependency in CMake config (#53026)

This commit is contained in:
Kadir 2026-07-23 21:13:37 +03:00 committed by GitHub
parent 3e243c063a
commit e74e979a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 2 deletions

View File

@ -19,6 +19,17 @@ index c63a982..5bc325f 100644
)
set( ECCODES_LIBRARIES eccodes )
diff --git a/eccodes-import.cmake.in b/eccodes-import.cmake.in
index c0155c8..3245f4f 100644
--- a/eccodes-import.cmake.in
+++ b/eccodes-import.cmake.in
@@ -1,3 +1,6 @@
+include(CMakeFindDependencyMacro)
+find_dependency(tl-expected CONFIG)
+
set( ECCODES_DEFINITION_PATH ${eccodes_BASE_DIR}/@ECCODES_DEFINITION_SUFF@ )
set( ECCODES_SAMPLES_PATH ${eccodes_BASE_DIR}/@ECCODES_SAMPLES_SUFF@ )
set( ECCODES_IFS_SAMPLES_PATH ${eccodes_BASE_DIR}/@ECCODES_IFS_SAMPLES_SUFF@ )
diff --git a/src/eccodes/CMakeLists.txt b/src/eccodes/CMakeLists.txt
index 04b03eb..7f97c37 100644
--- a/src/eccodes/CMakeLists.txt
@ -31,7 +42,6 @@ index 04b03eb..7f97c37 100644
$<$<BOOL:${libaec_FOUND}>:libaec::aec>
PUBLIC_LIBS
${CMATH_LIBRARIES}
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 2106df1..cfaa8fe 100644
--- a/tests/CMakeLists.txt

View File

@ -1,6 +1,7 @@
{
"name": "eccodes",
"version": "2.48.0",
"port-version": 1,
"description": "ECMWF GRIB, BUFR and GTS decoding and encoding library and tools",
"homepage": "https://github.com/ecmwf/eccodes",
"license": "Apache-2.0",

View File

@ -2770,7 +2770,7 @@
},
"eccodes": {
"baseline": "2.48.0",
"port-version": 0
"port-version": 1
},
"ecm": {
"baseline": "6.28.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "64840128a033dbea7ed8c9f2b036e8bcbfefbc12",
"version": "2.48.0",
"port-version": 1
},
{
"git-tree": "0da520cc5ef1c1263c740fcf0836e3c43e61fc23",
"version": "2.48.0",