diff options
author | Peter Brady <ptb@lanl.gov> | 2022-01-23 02:44:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 10:44:29 +0100 |
commit | 551c44f0fd8f52bd12eafe1f53210ce91cdd2647 (patch) | |
tree | 6d73a7a04b363fb7557a5f2cfe69048b22408e13 | |
parent | 3893b90cb9394d84bde6940ef798330d2d240e71 (diff) | |
download | spack-551c44f0fd8f52bd12eafe1f53210ce91cdd2647.tar.gz spack-551c44f0fd8f52bd12eafe1f53210ce91cdd2647.tar.bz2 spack-551c44f0fd8f52bd12eafe1f53210ce91cdd2647.tar.xz spack-551c44f0fd8f52bd12eafe1f53210ce91cdd2647.zip |
petaca: add shared library variant (#28543)
-rw-r--r-- | var/spack/repos/builtin/packages/petaca/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petaca/package.py b/var/spack/repos/builtin/packages/petaca/package.py index 29abe2304c..1d9214dc41 100644 --- a/var/spack/repos/builtin/packages/petaca/package.py +++ b/var/spack/repos/builtin/packages/petaca/package.py @@ -35,6 +35,8 @@ class Petaca(CMakePackage): description='Type build type to build', values=('Debug', 'Release')) + variant('shared', default=False, description='build shared libraries') + # copied from openmpi/package.py to ensure fortran support @run_before('cmake') def die_without_fortran(self): @@ -45,5 +47,6 @@ class Petaca(CMakePackage): def cmake_args(self): return [ - self.define('ENABLE_TESTS', self.run_tests) + self.define('ENABLE_TESTS', self.run_tests), + self.define_from_variant("BUILD_SHARED_LIBS", "shared") ] |