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

using netcdf target now instead of FOUND variable

parent 98190670
No related branches found
No related tags found
1 merge request!312CMake Improvements and fixes
......@@ -41,7 +41,8 @@ ENDIF()
find_package(netCDF 4.0 REQUIRED)
set(netcdf_flag HAVE_LIBNETCDF)
if (${netCDF_FOUND})
message(STATUS netCDF::netcdf)
if (TARGET netCDF::netcdf)
add_compile_definitions(${netcdf_flag}=${netCDF_FOUND})
else()
message(WARNING "netcdf not found, compiling without netcdf")
......
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