summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cabana/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/cabana/package.py')
-rw-r--r--var/spack/repos/builtin/packages/cabana/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cabana/package.py b/var/spack/repos/builtin/packages/cabana/package.py
index b3bc87c061..53ae608644 100644
--- a/var/spack/repos/builtin/packages/cabana/package.py
+++ b/var/spack/repos/builtin/packages/cabana/package.py
@@ -14,6 +14,7 @@ class Cabana(CMakePackage):
url = "https://github.com/ECP-copa/Cabana/archive/0.1.0.tar.gz"
version('master', branch='master')
+ version('0.3.0', sha256='fb67ab9aaf254b103ae0eb5cc913ddae3bf3cd0cf6010e9686e577a2981ca84f')
version('0.2.0', sha256='3e0c0e224e90f4997f6c7e2b92f00ffa18f8bcff72f789e0908cea0828afc2cb')
version('0.1.0', sha256='3280712facf6932b9d1aff375b24c932abb9f60a8addb0c0a1950afd0cb9b9cf')
version('0.1.0-rc0', sha256='73754d38aaa0c2a1e012be6959787108fec142294774c23f70292f59c1bdc6c5')
@@ -21,6 +22,7 @@ class Cabana(CMakePackage):
variant('serial', default=True, description="enable Serial backend (default)")
variant('openmp', default=False, description="enable OpenMP backend")
variant('cuda', default=False, description="enable Cuda backend")
+ variant('shared', default=True, description='Build shared libraries')
depends_on("cmake@3.9:", type='build')
depends_on("kokkos-legacy+serial", when="@:0.2.0+serial")
@@ -38,7 +40,9 @@ class Cabana(CMakePackage):
'-DCabana_ENABLE_OpenMP=%s' % (
'On' if '+openmp' in self.spec else 'Off'),
'-DCabana_ENABLE_Cuda=%s' % (
- 'On' if '+cuda' in self.spec else 'Off')
+ 'On' if '+cuda' in self.spec else 'Off'),
+ '-DBUILD_SHARED_LIBS=%s' % (
+ 'On' if '+shared' in self.spec else 'Off')
]
return options