Add variant for shared library
This commit is contained in:
parent
c3c70cf704
commit
f221f64509
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ class Silo(Package):
|
|||
version('4.8', 'b1cbc0e7ec435eb656dc4b53a23663c9')
|
||||
|
||||
variant('fortran', default=True, description='Enable Fortran support')
|
||||
variant('shared', default=True, description='Build shared libraries')
|
||||
variant('silex', default=False, description='Builds Silex, a GUI for viewing Silo files')
|
||||
|
||||
depends_on('hdf5')
|
||||
|
@ -22,6 +23,8 @@ def install(self, spec, prefix):
|
|||
config_args = [
|
||||
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',
|
||||
'--enable-silex' if '+silex' in spec else '--disable-silex',
|
||||
'--enable-shared' if '+shared' in spec else '--disable-shared',
|
||||
'--disable-static' if '+shared' in spec else '--enable-static',
|
||||
]
|
||||
|
||||
if '+silex' in spec:
|
||||
|
|
Loading…
Reference in a new issue