Skip to content

Commit

Permalink
Added default value for -obpath and updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nvitucci committed Jul 19, 2019
1 parent 5050b67 commit 563e5fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install_sedumi.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ function install_sedumi( varargin )
flags{end+1} = '-O';
flags{end+1} = '-DOCTAVE';
libs{end+1} = '-lblas';

if isempty(openblas_path)
flags{end+1} = strcat('-I', '/usr/include/openblas');
end
else
flags{end+1} = '-O';
if IS64BIT && ( VERSION >= 7.03 ),
Expand Down Expand Up @@ -244,6 +248,8 @@ function install_sedumi( varargin )
disp( line );
disp( 'SeDuMi was not successfully installed.' );
disp( 'Please attempt to correct the errors and try again.' );
disp( 'For example, try setting the OpenBLAS include path with' );
disp(' install_sedumi -obpath=/path/to/openblas/headers');
elseif ~no_path,
disp( line );
fprintf( 'Adding SeDuMi to the %s path:\n', prog );
Expand Down

0 comments on commit 563e5fe

Please sign in to comment.