M300433/cmake improvements and define cleanups
4 unresolved threads
4 unresolved threads
Compare changes
+ 67
− 28
find_package(netCDF COMPONENTS C REQUIRED)
will either find netCDF::netcdf or fail with an error right away because of theREQUIRED
keyword, which meansif (TARGET netCDF::netcdf)
is always true, at least according toFindNetCDF.cmake
documentation and logic. I just quickly read it to make sure.By the way it is considered a good practice to use
REQUIRED
, so I'm not advocating to remove it, however I do think theelse()
and warning below cannot be reached and can be removed.
I dont think this is correct, netcdf does not provide grib_api.h on my netcdf installation.
Yes, they are internal libraries from us. I need to sort that out later on.
I can try a patch.
!138 (merged)