Skip to content

Commit

Permalink
eckit::geo - improve detection of eckit
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell authored and pmaciel committed Nov 28, 2024
1 parent 76418fb commit 5c76091
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ ecbuild_add_option( FEATURE ECKIT_GEO
DESCRIPTION "Support for Geoiterator and nearest neighbour (additional backend)"
CONDITION ENABLE_GEOGRAPHY
DEFAULT OFF )
if( ECKIT_GEO AND NOT TARGET eckit_geo )
find_library(ECKIT_GEO_LIB NAMES eckit_geo REQUIRED)

if( ENABLE_ECKIT_GEO AND NOT TARGET eckit_geo )
ecbuild_find_package(NAME eckit VERSION 1.27 REQUIRED)
if( NOT eckit_HAVE_ECKIT_GEO )
ecbuild_critical("eckit has not been built with ECKIT_GEO enabled")
endif()
endif()

ecbuild_add_option( FEATURE JPG
Expand Down

0 comments on commit 5c76091

Please sign in to comment.