Ensure build mechanism changes back to current directory
also when build fails.
This commit is contained in:
parent
98ff8ac4f1
commit
f4b0ab8c23
@ -30,8 +30,13 @@ p = which('processgrid');
|
||||
ix = strfind(p, filesep);
|
||||
p = p(1:ix(end));
|
||||
cd(p);
|
||||
mex processgrid.c preprocess.c uniquepoints.c facetopology.c ...
|
||||
try
|
||||
mex processgrid.c preprocess.c uniquepoints.c facetopology.c ...
|
||||
sparsetable.c mxgrdecl.c CFLAGS='$CFLAGS -Wall -fPIC'
|
||||
catch
|
||||
cd(op);
|
||||
error('Couldn''t compile processgrid.mexa64');
|
||||
end
|
||||
cd(op)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user