From 67b60842bf647f21f42380b763a0266992ca059f Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Mon, 1 Apr 2024 11:48:02 +0800 Subject: [PATCH] 240401.114802.HKT update setup.m regarding the message printed when MEX verification fails --- .github/workflows/cmake.yml | 2 +- setup.m | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 1f6a29dc08..dd7899534f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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] diff --git a/setup.m b/setup.m index 7a4070339b..66b1ce58de 100644 --- a/setup.m +++ b/setup.m @@ -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');