diff options
author | Cyrus Harrison <cyrush@llnl.gov> | 2020-07-13 14:57:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 14:57:04 -0700 |
commit | 6aa6e19d34ee8bb2163d6b23211cd0cb5be47b3f (patch) | |
tree | f31f0a4e227173b54e81e0ef0c6054ef39a01114 | |
parent | c2d8d8acbd22792e40cb734bb6d04ce333548dd1 (diff) | |
download | spack-6aa6e19d34ee8bb2163d6b23211cd0cb5be47b3f.tar.gz spack-6aa6e19d34ee8bb2163d6b23211cd0cb5be47b3f.tar.bz2 spack-6aa6e19d34ee8bb2163d6b23211cd0cb5be47b3f.tar.xz spack-6aa6e19d34ee8bb2163d6b23211cd0cb5be47b3f.zip |
add shared libs variant to umpire (#17497)
-rw-r--r-- | var/spack/repos/builtin/packages/umpire/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/umpire/package.py b/var/spack/repos/builtin/packages/umpire/package.py index 928d8aa80c..cc9ccbebd5 100644 --- a/var/spack/repos/builtin/packages/umpire/package.py +++ b/var/spack/repos/builtin/packages/umpire/package.py @@ -38,6 +38,7 @@ class Umpire(CMakePackage, CudaPackage): variant('fortran', default=False, description='Build C/Fortran API') variant('c', default=True, description='Build C API') variant('numa', default=False, description='Enable NUMA support') + variant('shared', default=True, description='Enable Shared libs') variant('openmp', default=False, description='Build with OpenMP support') variant('deviceconst', default=False, description='Enables support for constant device memory') @@ -80,6 +81,9 @@ class Umpire(CMakePackage, CudaPackage): options.append('-DENABLE_OPENMP={0}'.format( 'On' if '+openmp' in spec else 'Off')) + options.append('-DBUILD_SHARED_LIBS={0}'.format( + 'On' if '+shared' in spec else 'Off')) + options.append('-DENABLE_TESTS={0}'.format( 'On' if self.run_tests else 'Off')) |