From a1eb5596eca33c6c006156f56bc25669ac827dbb Mon Sep 17 00:00:00 2001 From: Satish Balay Date: Mon, 1 Nov 2021 10:45:26 -0500 Subject: kokkos-kernels: add variant 'shared' (#27097) * kokkos-kernels: add variant 'shared' * Update var/spack/repos/builtin/packages/kokkos-kernels/package.py --- var/spack/repos/builtin/packages/kokkos-kernels/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2