diff options
author | Paul Kuberry <pakuber@sandia.gov> | 2022-02-01 01:49:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 09:49:57 +0100 |
commit | bff5d253cf08990e053ac4255d05df482d8ab393 (patch) | |
tree | e003ca6d71bd94b35e60ffadda0c7756454f36aa /var | |
parent | 3456a355ce626a6a78d6b6a7fef416988331721d (diff) | |
download | spack-bff5d253cf08990e053ac4255d05df482d8ab393.tar.gz spack-bff5d253cf08990e053ac4255d05df482d8ab393.tar.bz2 spack-bff5d253cf08990e053ac4255d05df482d8ab393.tar.xz spack-bff5d253cf08990e053ac4255d05df482d8ab393.zip |
xyce: add 'plugin' variant (#28698)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/xyce/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/xyce/package.py b/var/spack/repos/builtin/packages/xyce/package.py index 52f0bfdcd0..26a7f7348d 100644 --- a/var/spack/repos/builtin/packages/xyce/package.py +++ b/var/spack/repos/builtin/packages/xyce/package.py @@ -38,11 +38,16 @@ class Xyce(CMakePackage): variant('mpi', default=True, description='Enable MPI support') depends_on('mpi', when='+mpi') + variant('plugin', default=False, description='Enable plug-in support for Xyce') + depends_on('adms', type=('build', 'run'), when='+plugin') + + variant('shared', default=False, description='Enable shared libraries for Xyce') + conflicts('~shared', when='+plugin', msg='Disabling shared libraries is incompatible with the activation of plug-in support') + # any option other than cxxstd=11 would be ignored in Xyce # this defaults to 11, consistent with what will be used, # and produces an error if any other value is attempted cxxstd_choices = ['11'] - variant('shared', default=False, description='Enable shared libraries for Xyce') variant('cxxstd', default='11', values=cxxstd_choices, multi=False) variant('pymi', default=False, description='Enable Python Model Interpreter for Xyce') @@ -90,6 +95,7 @@ class Xyce(CMakePackage): else: options.append('-DCMAKE_CXX_COMPILER:STRING={0}'.format(self.compiler.cxx)) + options.append(self.define_from_variant('Xyce_PLUGIN_SUPPORT', 'plugin')) options.append(self.define_from_variant('BUILD_SHARED_LIBS', 'shared')) options.append(self.define_from_variant('CMAKE_CXX_STANDARD', 'cxxstd')) |