From f5ea8b64b9972fcacf028cdb96cad06e3b3e3586 Mon Sep 17 00:00:00 2001 From: Pedro Maciel Date: Fri, 29 Nov 2024 09:46:26 +0000 Subject: [PATCH] eckit::geo - fixed detection of eckit --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb65b764e..36c245c96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,9 +117,9 @@ ecbuild_add_option( FEATURE ECKIT_GEO CONDITION ENABLE_GEOGRAPHY DEFAULT OFF ) -if( ENABLE_ECKIT_GEO AND NOT TARGET eckit_geo ) +if( eckit_HAVE_ECKIT_GEO AND NOT TARGET eckit_geo ) ecbuild_find_package(NAME eckit VERSION 1.27 REQUIRED) - if( NOT eckit_HAVE_ECKIT_GEO ) + if( NOT TARGET eckit_geo ) ecbuild_critical("eckit has not been built with ECKIT_GEO enabled") endif() endif()