Bug fix for building ESMF shared on macOS: set ESMF_TRACE_LIB_BUILD=OFF (#42134)
This commit is contained in:
parent
78e5e31558
commit
560bb9f507
@ -398,6 +398,11 @@ def setup_build_environment(self, env):
|
||||
if "~shared" in spec:
|
||||
env.set("ESMF_SHARED_LIB_BUILD", "OFF")
|
||||
|
||||
# https://github.com/JCSDA/spack-stack/issues/956
|
||||
if "+shared" in spec:
|
||||
if sys.platform == "darwin":
|
||||
env.set("ESMF_TRACE_LIB_BUILD", "OFF")
|
||||
|
||||
@run_after("install")
|
||||
def post_install(self):
|
||||
install_tree("cmake", self.prefix.cmake)
|
||||
|
Loading…
Reference in New Issue
Block a user