summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kuberry <pakuber@sandia.gov>2022-01-18 10:05:39 -0700
committerGitHub <noreply@github.com>2022-01-18 10:05:39 -0700
commit612430859e302402b5e1c5efb2b2074f7beb0950 (patch)
tree3dec82b0c344236fd5d37aada622659886c0f8b4
parentbd987d92789a1fe4ab4555afaf2867b6255636a9 (diff)
downloadspack-612430859e302402b5e1c5efb2b2074f7beb0950.tar.gz
spack-612430859e302402b5e1c5efb2b2074f7beb0950.tar.bz2
spack-612430859e302402b5e1c5efb2b2074f7beb0950.tar.xz
spack-612430859e302402b5e1c5efb2b2074f7beb0950.zip
Xyce: add version 7.4.0 and '+shared' variant (#28469)
-rw-r--r--var/spack/repos/builtin/packages/xyce/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/xyce/package.py b/var/spack/repos/builtin/packages/xyce/package.py
index 34e6513dd6..38c40efe49 100644
--- a/var/spack/repos/builtin/packages/xyce/package.py
+++ b/var/spack/repos/builtin/packages/xyce/package.py
@@ -23,6 +23,7 @@ class Xyce(CMakePackage):
maintainers = ['kuberry']
version('github.master', branch='master', preferred=True)
+ version('7.4.0', '2d6bc1b7377834b2e0bf50131e96728c5be83dbb3548e765bb48911067c87c91')
version('7.3.0', '43869a70967f573ff6f00451db3f4642684834bdad1fd3926380e3789016b446')
version('7.2.0', 'cf49705278ecda46373784bb24925cb97f9017b6adff49e4416de146bdd6a4b5')
@@ -37,6 +38,8 @@ class Xyce(CMakePackage):
variant('mpi', default=True, description='Enable MPI support')
depends_on('mpi', when='+mpi')
+ variant('shared', default=False, description='Enable shared libraries for Xyce')
+
variant('pymi', default=False, description='Enable Python Model Interpreter for Xyce')
depends_on('python@3:', type=('build', 'link', 'run'), when='+pymi')
depends_on('py-pip', type='run', when='+pymi')
@@ -78,10 +81,7 @@ class Xyce(CMakePackage):
else:
options.append('-DCMAKE_CXX_COMPILER:STRING={0}'.format(self.compiler.cxx))
- if '+shared' in spec:
- options.append('-DBUILD_SHARED_LIBS:BOOL=ON')
- else:
- options.append('-DBUILD_SHARED_LIBS:BOOL=OFF')
+ options.append(self.define_from_variant('BUILD_SHARED_LIBS', 'shared'))
if '+pymi' in spec:
pybind11 = spec['py-pybind11']