modify addpath statements for precompiled Mac binaries

time-shift
Houtan Bastani 2011-10-13 11:18:30 +02:00
parent ee7078e56c
commit 5e5efc816a
1 changed files with 21 additions and 0 deletions

View File

@ -145,6 +145,27 @@ else
end
end
if strcmp(computer, 'MACI')
if matlab_ver_less_than('7.5')
mexpath = [dynareroot '../mex/matlab/osx32-7.4'];
if exist(mexpath, 'dir')
addpath(mexpath)
end
else
mexpath = [dynareroot '../mex/matlab/osx32-7.5-7.13'];
if exist(mexpath, 'dir')
addpath(mexpath)
end
end
end
if strcmp(computer, 'MACI64')
mexpath = [dynareroot '../mex/matlab/osx64'];
if exist(mexpath, 'dir')
addpath(mexpath)
end
end
% Add generic MATLAB path (with higher priority than the previous ones)
addpath([dynareroot '../mex/matlab/']);
end