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

fixed messages, added HAVE_NETCDF4 message

parent a2b9694a
No related branches found
No related tags found
1 merge request!114M300433/cmake cleanup 1
Pipeline #94326 canceled
......@@ -27,7 +27,8 @@ endif ()
find_package(netCDF COMPONENTS C REQUIRED)
check_include_file("netcdf.h" ${netcdf_flag} C)
if (${netCDF_FOUND})
message(STATUS "added compile definition HAVE_LIBNETCDF=${netCDF_FOUND}")
message("added compile definition HAVE_LIBNETCDF=${netCDF_FOUND}")
message("added compile definition HAVE_NETCDF4=${netCDF_FOUND}")
add_compile_definitions(HAVE_LIBNETCDF=${netCDF_FOUND})
add_compile_definitions(HAVE_NETCDF4=1)
else()
......
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