From e51ca819fef0b2a4e73152994684e1e9548cc23d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 21 Jan 2014 18:06:47 +0000 Subject: [PATCH] [SCons] Fix an error when not using Sundials 'has_sundials_lapack' is only defined if we are using Sundials. --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index eebafbea0..77dcb1e89 100644 --- a/SConstruct +++ b/SConstruct @@ -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