I have this question from a fellow NOAA programmer about the CMake config file for netcdf-c:
The CMake build of NetCDF (C, Fortran and C++) do not provide a correct package config file. In other words, I never had success with find_package(NetCDF C Fortran C++) using the package config file provided by the NetCDF package. This is the reason I (and some others) have been using the old configure based build system and came up with our version of FindNetCDF.cmake that relies on nc-config, nf-config, ncxx4-config.
I have this question from a fellow NOAA programmer about the CMake config file for netcdf-c: