NOAA-OWP / noah-owp-modular

Modularized version of the NOAH-MP land surface model.
Other
8 stars 19 forks source link

Update ancient build system #103

Open SnowHydrology opened 6 months ago

SnowHydrology commented 6 months ago

Current behavior

To build Noah-OWP-Modular currently, you need to:

  1. run ./configure
  2. hope your NetCDF and compiler info matches one of the preconfigured options or edit user_build_options
  3. run make

Suggested changes

Create a cmake build system that doesn't rely on hard-coded compiler and NetCDF paths.

hellkite500 commented 6 months ago

Can borrow from the one we use in ngen https://github.com/NOAA-OWP/ngen/blob/master/extern/noah-owp-modular/CMakeLists.txt