[SCons] Fix an error when not using Sundials
'has_sundials_lapack' is only defined if we are using Sundials.
This commit is contained in:
parent
2144738ea1
commit
e51ca819fe
1 changed files with 2 additions and 2 deletions
|
|
@ -1142,8 +1142,8 @@ if env['use_sundials'] == 'y':
|
|||
configh['SUNDIALS_VERSION'] = env['sundials_version'].replace('.','')
|
||||
else:
|
||||
configh['SUNDIALS_VERSION'] = 0
|
||||
|
||||
if env['has_sundials_lapack'] and not env['BUILD_BLAS_LAPACK']:
|
||||
|
||||
if env.get('has_sundials_lapack') and not env['BUILD_BLAS_LAPACK']:
|
||||
configh['SUNDIALS_USE_LAPACK'] = 1
|
||||
else:
|
||||
configh['SUNDIALS_USE_LAPACK'] = 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue