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.
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 calledMAPL_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.