Skip to content
Snippets Groups Projects
Commit 72c71a78 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

if eccodes option enables: make eccodes required, removed not reachable else statements

parent d3d65ff8
No related branches found
No related tags found
1 merge request!145M300433/cmake improvements and cleanup 2
......@@ -50,11 +50,9 @@ endif()
# ecCodes
option(CDI_ECCODES "Use the eccodes library [default=ON]" ON)
if(${CDI_ECCODES} OR eccodes_ROOT)
find_package(eccodes)
find_package(eccodes REQUIRED)
if (${eccodes_FOUND})
list(APPEND cdi_linked_libs eccodes)
else()
message(WARNING "eccodes not found, compiling without eccodes")
endif ()
endif()
......@@ -69,8 +67,6 @@ if(${CDI_NETCDF} OR netCDF_ROOT )
HAVE_NETCDF4=${netCDF_FOUND}
)
list(APPEND cdi_linked_libs netCDF::netcdf)
else()
message(WARNING "netcdf target not found, compiling without netcdf")
endif ()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment