Skip to content

[cmake] Refactor netCDF library finding

Lars Bilke requested to merge bilke/ogs:netcdf-refactor into master

NetCDF was the last dependency which used the Conan package manager. This MR removes everything Conan-related and refactors the NetCDF finding logic:

On Linux / macOS the system packages are searched. On Windows the developer needs to install the NetCDF binary installer (https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netCDF4.9.2-NC4-64.exe). Then the NetCDF C++ bindings are build automatically via CPM.

Tested also manually by @rinkk.

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?
Edited by Lars Bilke

Merge request reports