The following packages are required to build netCDF-C using CMake.
netCDF-C Source Code
CMake version 2.8.12 or greater.
- HDF5 Libraries for netCDF4/HDF5 support.
- libcurl for DAP support.
- PnetCDF libraries for parallel I/O support to classic netCDF files
If you have libraries installed in a custom directory, you may need to specify the CMAKE_PREFIX_PATH variable to tell cmake where the libraries are installed. For example:
$ cmake [Source Directory] -DCMAKE_PREFIX_PATH=~/
The compiler can be executed directly with ‘make’ or the appropriate command for the configurator which was used.
Building can also be executed indirectly via cmake:
$ cmake –build [Build Directory]