summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2020-12-30 09:07:43 -0800
committerGitHub <noreply@github.com>2020-12-30 11:07:43 -0600
commit717b653bdd9339a6faf153ab79c74487440ec21a (patch)
tree6680f6d319a091e57de1a798a5140c7005680138 /var
parent5964cb49d9dede06a0bf2e5ea3c86669c3ffe9b2 (diff)
downloadspack-717b653bdd9339a6faf153ab79c74487440ec21a.tar.gz
spack-717b653bdd9339a6faf153ab79c74487440ec21a.tar.bz2
spack-717b653bdd9339a6faf153ab79c74487440ec21a.tar.xz
spack-717b653bdd9339a6faf153ab79c74487440ec21a.zip
nalu-wind: add variant to build wind-utils (#20587)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nalu-wind/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/nalu-wind/package.py b/var/spack/repos/builtin/packages/nalu-wind/package.py
index 1f54887dc7..0adb3289b1 100644
--- a/var/spack/repos/builtin/packages/nalu-wind/package.py
+++ b/var/spack/repos/builtin/packages/nalu-wind/package.py
@@ -38,6 +38,9 @@ class NaluWind(CMakePackage):
variant('fftw', default=False,
description='Compile with FFTW support')
+ variant('wind-utils', default=False,
+ description='Build wind-utils')
+
# Required dependencies
depends_on('mpi')
depends_on('yaml-cpp@0.5.3:', when='+shared')
@@ -116,6 +119,11 @@ class NaluWind(CMakePackage):
else:
options.append('-DENABLE_FFTW:BOOL=OFF')
+ if '+wind-utils' in spec:
+ options.append('-DENABLE_WIND_UTILS=ON')
+ else:
+ options.append('-DENABLE_WIND_UTILS=OFF')
+
if 'darwin' in spec.architecture:
options.append('-DCMAKE_MACOSX_RPATH:BOOL=ON')
@@ -139,6 +147,6 @@ class NaluWind(CMakePackage):
@run_before('cmake')
def add_submodules(self):
- if self.run_tests:
+ if self.run_tests or '+wind-utils' in self.spec:
git = which('git')
git('submodule', 'update', '--init', '--recursive')