Add variant for shared library

This commit is contained in:
Dhanannjay Deo 2016-04-05 22:31:08 -04:00 committed by Dhanannjay 'Djay' Deo
parent c3c70cf704
commit f221f64509

View file

@ -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: