diff options
author | Alex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com> | 2022-12-17 03:27:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 04:27:22 -0700 |
commit | 50570ea33491b3df7ca74c0be03a6c7519f7ceae (patch) | |
tree | 624715285211b64c07b28e4ce50a5924e7e58e6b /var | |
parent | 7e836b925d4b16b605ddc4d901351ac165617c56 (diff) | |
download | spack-50570ea33491b3df7ca74c0be03a6c7519f7ceae.tar.gz spack-50570ea33491b3df7ca74c0be03a6c7519f7ceae.tar.bz2 spack-50570ea33491b3df7ca74c0be03a6c7519f7ceae.tar.xz spack-50570ea33491b3df7ca74c0be03a6c7519f7ceae.zip |
Add static-only option for ESMF (#34576)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/esmf/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/esmf/package.py b/var/spack/repos/builtin/packages/esmf/package.py index 885ca3817e..31c97b2003 100644 --- a/var/spack/repos/builtin/packages/esmf/package.py +++ b/var/spack/repos/builtin/packages/esmf/package.py @@ -89,6 +89,7 @@ class Esmf(MakefilePackage): when="@8.3.0b09", ) variant("debug", default=False, description="Make a debuggable version of the library") + variant("shared", default=True, description="Build shared library") # Required dependencies depends_on("zlib") @@ -358,6 +359,10 @@ class Esmf(MakefilePackage): # ESMF_XERCES_INCLUDE # ESMF_XERCES_LIBPATH + # Static-only option: + if "~shared" in spec: + os.environ["ESMF_SHARED_LIB_BUILD"] = "OFF" + @run_after("install") def install_findesmf(self): install_tree("cmake", self.prefix.cmake) |