Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable external SUNDIALS libraries when building the Matlab toolbox #456

Merged
merged 1 commit into from
Jun 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -1272,15 +1272,23 @@ if env['matlab_path'] != '' and env['matlab_toolbox'] == 'default':
if env['matlab_toolbox'] == 'y':
matPath = env['matlab_path']
if matPath == '':
print """ERROR: Unable to build the Matlab toolbox because 'matlab_path' has not been set."""
print "ERROR: Unable to build the Matlab toolbox because 'matlab_path' has not been set."
sys.exit(1)

if env['blas_lapack_libs']:
print ('ERROR: The Matlab toolbox is incompatible with external BLAS '
'and LAPACK libraries. Unset blas_lapack_libs (e.g. "scons '
'build blas_lapack_libs=") in order to build the Matlab '
'toolbox, or set matlab_toolbox=n to use the specified BLAS/'
'LAPACK libraries and skip building the Matlab toolbox.')
print('ERROR: The Matlab toolbox is incompatible with external BLAS '
'and LAPACK libraries. Unset blas_lapack_libs (e.g. "scons '
'build blas_lapack_libs=") in order to build the Matlab '
'toolbox, or set matlab_toolbox=n to use the specified BLAS/'
'LAPACK libraries and skip building the Matlab toolbox.')
sys.exit(1)

if env['system_sundials'] == 'y':
print('ERROR: The Matlab toolbox is incompatible with external '
'SUNDIALS libraries. Set system_sundials to no (e.g., "scons build '
'system_sundials=n") in order to build the Matlab '
'toolbox, or set matlab_toolbox=n to use the specified '
'SUNDIALS libraries and skip building the Matlab toolbox.')
sys.exit(1)

if not (os.path.isdir(matPath) and
Expand Down