diff --git a/CMakeLists.txt b/CMakeLists.txt index aaefc9b1e..a65f95d07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,17 +271,18 @@ ecbuild_pkgconfig( NAME eccodes URL "https://software.ecmwf.int/wiki/display/ECC" DESCRIPTION "The ecCodes library" - IGNORE_LIBRARIES grib_api_f90 grib_api_f77 + IGNORE_LIBRARIES grib_api_f90 grib_api_f77 ${NETCDF_LIBRARIES} IGNORE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/fortran ${CMAKE_CURRENT_BINARY_DIR}/fortran ${NETCDF_INCLUDE_DIRS} - VARIABLES HAVE_JPG HAVE_LIBJASPER GRIB_PTHREADS HAVE_NETCDF HAVE_PYTHON HAVE_FORTRAN HAVE_PNG HAVE_AEC + VARIABLES HAVE_JPG HAVE_LIBJASPER GRIB_THREADS HAVE_NETCDF HAVE_PYTHON HAVE_FORTRAN HAVE_PNG HAVE_AEC ) if( EC_HAVE_FORTRAN ) ecbuild_pkgconfig( NAME eccodes_f90 URL "https://software.ecmwf.int/wiki/display/ECC" + IGNORE_LIBRARIES ${NETCDF_LIBRARIES} IGNORE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/fortran ${CMAKE_CURRENT_BINARY_DIR}/fortran ${NETCDF_INCLUDE_DIRS} DESCRIPTION "The ecCodes library for Fortran 90" - VARIABLES HAVE_JPG HAVE_LIBJASPER GRIB_PTHREADS HAVE_NETCDF HAVE_PYTHON HAVE_PNG HAVE_AEC + VARIABLES HAVE_JPG HAVE_LIBJASPER GRIB_THREADS HAVE_NETCDF HAVE_PYTHON HAVE_PNG HAVE_AEC ) endif()