From fc27dcf0b258c4295253a8d4b71a810ef3233c53 Mon Sep 17 00:00:00 2001 From: Kevin Nobel Date: Wed, 13 May 2026 12:53:31 +0000 Subject: [PATCH] Add condition eckit_HAVE_ECKIT_GEO for feature MARS2GRIB --- CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5da361f..9e591c6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,13 @@ if(NOT METKIT_CONFIGS_BRANCH) set(METKIT_CONFIGS_BRANCH chk) endif() +# eckit + +set( PERSISTENT_NAMESPACE "eckit" CACHE INTERNAL "" ) # needed for generating .b files for persistent support + +ecbuild_find_package( NAME eckit VERSION 1.32 REQUIRED ) + + ecbuild_add_option( FEATURE BUILD_TOOLS DEFAULT ON DESCRIPTION "Build the command line tools" ) @@ -64,8 +71,7 @@ ecbuild_add_option( FEATURE ODB ecbuild_add_option( FEATURE MARS2GRIB DEFAULT ON - # CONDITION HAVE_GRIB AND HAVE_ECKIT_GEO ==> revert as soon as we disambiguate the eckit geo support from the one in eccodes - CONDITION HAVE_GRIB + CONDITION HAVE_GRIB AND eckit_HAVE_ECKIT_GEO DESCRIPTION "Build the MARS2GRIB encoder" ) # Python bindings for mars2grib encoder @@ -88,11 +94,7 @@ ecbuild_add_option( FEATURE METKIT_CONFIG ecbuild_add_option( FEATURE FAIL_ON_CCSDS DESCRIPTION "Fail on CCSDS" DEFAULT OFF ) -# eckit -set( PERSISTENT_NAMESPACE "eckit" CACHE INTERNAL "" ) # needed for generating .b files for persistent support - -ecbuild_find_package( NAME eckit VERSION 1.32 REQUIRED ) ############################################################################################ # sources