Skip to content

Commit

Permalink
240401.114802.HKT update setup.m regarding the message printed when M…
Browse files Browse the repository at this point in the history
…EX verification fails
  • Loading branch information
zaikunzhang committed Apr 1, 2024
1 parent b7be0a2 commit 67b6084
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix:
# See https://github.com/fortran-lang/setup-fortran?tab=readme-ov-file#runner-compatibility
# for the toolchains provided by fortran-lang/setup-fortran. We test the latest three on each OS.
# N.B.: As of 20240401, setup-fortran fails constantly with windows-latest and intel-clasic
# N.B.: As of 20240401, setup-fortran fails constantly with windows-latest and intel-classic
# 2021.8. Thus this combination is not included (see the Windows part below).
# First define the toolchains on Linux and macOS.
os: [ubuntu-latest, macos-latest, macos-13]
Expand Down
7 changes: 4 additions & 3 deletions setup.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ function setup(varargin)
language = 'Fortran'; % Language to compile
mex_well_conf = try_mex_setup(language);
if mex_well_conf == 0
fprintf('\nThe MEX of your MATLAB is not properly configured for compiling Fortran.');
fprintf('\nPlease configure MEX before using this package. Try ''help mex'' for more information.');
fprintf('\nNote that MEX is a product of MathWorks, and its configuration is not part of this package.\n\n');
fprintf('\nMATLAB needs you to set MEX up for Fortran.');
fprintf('\nTry ''help mex'' or ask a MATLAB expert about MEX setup.');
fprintf('\nNote: MEX is a product of MathWorks. Its configuration is not part of this package.\n\n');
return

elseif mex_well_conf == -1
fprintf('\nmex(''-setup'', ''%s'') runs successfully but we cannot verify that MEX works properly.', language);
fprintf('\nWe will try to continue.\n\n');
Expand Down

0 comments on commit 67b6084

Please sign in to comment.