macOS: use different mex files depending on Matlab version

time-shift
Houtan Bastani 2019-09-16 17:31:46 +02:00
parent 37e19e8333
commit 8d2e3def95
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 15 additions and 5 deletions

View File

@ -84,11 +84,21 @@ else
end end
% Add OS X 64bits specific paths for Dynare Mac package % Add OS X 64bits specific paths for Dynare Mac package
if strcmp(computer, 'MACI64') if strcmp(computer, 'MACI64')
tmp = [dynareroot '../mex/matlab/osx/']; if matlab_ver_less_than('9.4')
if exist(tmp, 'dir') tmp = [dynareroot '../mex/matlab/64bit-8.7-9.3/'];
mexpath = tmp; if exist(tmp, 'dir')
if modifypath && exist(mexpath, 'dir') mexpath = tmp;
addpath(mexpath); if modifypath
addpath(mexpath);
end
end
else
tmp = [dynareroot '../mex/matlab/64bit-9.4-9.7'];
if exist(tmp, 'dir')
mexpath = tmp;
if modifypath
addpath(mexpath);
end
end end
end end
end end