Skip to content
Snippets Groups Projects
Commit 200d2ba0 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Ask cmake to display more information

parent d052a20a
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,7 @@ if (PkgConfig_FOUND)
pkg_check_modules(_NetCDF QUIET netcdf IMPORTED_TARGET)
if (_NetCDF_FOUND)
unset(netCDF_DIR CACHE)
message(STATUS "-- NetCDF libraries: ${_NetCDF_LINK_LIBRARIES}")
# Forward the variables in a consistent way.
set(NetCDF_FOUND "${_NetCDF_FOUND}")
set(NetCDF_INCLUDE_DIRS "${_NetCDF_INCLUDE_DIRS}")
......
......@@ -4,7 +4,7 @@ pkg_check_modules(NetCDF_Fortran REQUIRED IMPORTED_TARGET netcdf-fortran)
message(STATUS
"-- NetCDF-Fortran include flags: ${NetCDF_Fortran_INCLUDE_DIRS}")
message(STATUS "-- NetCDF-Fortran libraries: ${NetCDF_Fortran_LIBRARIES}")
message(STATUS "-- NetCDF-Fortran libraries: ${NetCDF_Fortran_LINK_LIBRARIES}")
if(PKG_CONFIG_VERSION_STRING VERSION_LESS "0.29.2")
# pkg-config strips system flags out of cflags. They do not appear
......
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