Xyce: add version 7.4.0 and '+shared' variant (#28469)
This commit is contained in:
parent
bd987d9278
commit
612430859e
1 changed files with 4 additions and 4 deletions
|
@ -23,6 +23,7 @@ class Xyce(CMakePackage):
|
||||||
maintainers = ['kuberry']
|
maintainers = ['kuberry']
|
||||||
|
|
||||||
version('github.master', branch='master', preferred=True)
|
version('github.master', branch='master', preferred=True)
|
||||||
|
version('7.4.0', '2d6bc1b7377834b2e0bf50131e96728c5be83dbb3548e765bb48911067c87c91')
|
||||||
version('7.3.0', '43869a70967f573ff6f00451db3f4642684834bdad1fd3926380e3789016b446')
|
version('7.3.0', '43869a70967f573ff6f00451db3f4642684834bdad1fd3926380e3789016b446')
|
||||||
version('7.2.0', 'cf49705278ecda46373784bb24925cb97f9017b6adff49e4416de146bdd6a4b5')
|
version('7.2.0', 'cf49705278ecda46373784bb24925cb97f9017b6adff49e4416de146bdd6a4b5')
|
||||||
|
|
||||||
|
@ -37,6 +38,8 @@ class Xyce(CMakePackage):
|
||||||
variant('mpi', default=True, description='Enable MPI support')
|
variant('mpi', default=True, description='Enable MPI support')
|
||||||
depends_on('mpi', when='+mpi')
|
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')
|
variant('pymi', default=False, description='Enable Python Model Interpreter for Xyce')
|
||||||
depends_on('python@3:', type=('build', 'link', 'run'), when='+pymi')
|
depends_on('python@3:', type=('build', 'link', 'run'), when='+pymi')
|
||||||
depends_on('py-pip', type='run', when='+pymi')
|
depends_on('py-pip', type='run', when='+pymi')
|
||||||
|
@ -78,10 +81,7 @@ def cmake_args(self):
|
||||||
else:
|
else:
|
||||||
options.append('-DCMAKE_CXX_COMPILER:STRING={0}'.format(self.compiler.cxx))
|
options.append('-DCMAKE_CXX_COMPILER:STRING={0}'.format(self.compiler.cxx))
|
||||||
|
|
||||||
if '+shared' in spec:
|
options.append(self.define_from_variant('BUILD_SHARED_LIBS', 'shared'))
|
||||||
options.append('-DBUILD_SHARED_LIBS:BOOL=ON')
|
|
||||||
else:
|
|
||||||
options.append('-DBUILD_SHARED_LIBS:BOOL=OFF')
|
|
||||||
|
|
||||||
if '+pymi' in spec:
|
if '+pymi' in spec:
|
||||||
pybind11 = spec['py-pybind11']
|
pybind11 = spec['py-pybind11']
|
||||||
|
|
Loading…
Reference in a new issue