GEOS-ESM / ESMA_cmake

Custom CMake macros for the GEOS Earth System Model
Apache License 2.0
4 stars 9 forks source link

v4: Support for MAPL-as-library #405

Closed mathomp4 closed 1 week ago

mathomp4 commented 1 week ago

It has been requested by some of the spack-stack folks (e.g., @climbfuji) that GEOSgcm when built with Spack should be able to use MAPL as a library rather than as a component built in.

I believe this is all that is necessary. We just need to tell CMake where mapl_stub.pl is. Because MAPL is built under ecbuild, that means it has a variable called MAPL_BASE_DIR[^1] that points to where MAPL is, e.g., in spack, where spack installed it.

[^1]: This is not great for MAPL since MAPL_Base is a thing for us, but, well, that's what ecbuild does.