summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2021-11-01 10:45:26 -0500
committerGitHub <noreply@github.com>2021-11-01 11:45:26 -0400
commita1eb5596eca33c6c006156f56bc25669ac827dbb (patch)
tree073f01c9b9d217663fa55cf2b609efbc0d8194ea /var
parent6c4f891b8f77787c65a1a921c60d825860bb7d30 (diff)
downloadspack-a1eb5596eca33c6c006156f56bc25669ac827dbb.tar.gz
spack-a1eb5596eca33c6c006156f56bc25669ac827dbb.tar.bz2
spack-a1eb5596eca33c6c006156f56bc25669ac827dbb.tar.xz
spack-a1eb5596eca33c6c006156f56bc25669ac827dbb.zip
kokkos-kernels: add variant 'shared' (#27097)
* kokkos-kernels: add variant 'shared' * Update var/spack/repos/builtin/packages/kokkos-kernels/package.py
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/kokkos-kernels/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kokkos-kernels/package.py b/var/spack/repos/builtin/packages/kokkos-kernels/package.py
index e029984f4e..c41a1607aa 100644
--- a/var/spack/repos/builtin/packages/kokkos-kernels/package.py
+++ b/var/spack/repos/builtin/packages/kokkos-kernels/package.py
@@ -91,6 +91,8 @@ class KokkosKernels(CMakePackage, CudaPackage):
variant(tpl, default=deflt, description=descr)
depends_on(spackname, when="+%s" % tpl)
+ variant('shared', default=True, description='Build shared libraries')
+
def cmake_args(self):
spec = self.spec
options = []
@@ -152,4 +154,6 @@ class KokkosKernels(CMakePackage, CudaPackage):
elif off_flag in self.spec:
options.append("-DKokkosKernels_INST_%s=OFF" % eti.upper())
+ options.append(self.define_from_variant('BUILD_SHARED_LIBS', 'shared'))
+
return options