summaryrefslogtreecommitdiffstats
path: root/Modules/MatlabTestsRedirect.cmake
diff options
context:
space:
mode:
authorscivision <scivision@users.noreply.github.com>2023-03-05 05:12:18 (GMT)
committerscivision <scivision@users.noreply.github.com>2023-03-07 20:34:36 (GMT)
commit103dbb2fd205315c1b083ea95aac5bebd0800473 (patch)
tree3690f6c32fdb3084781b979afe49ddf76704471d /Modules/MatlabTestsRedirect.cmake
parent1932ae0284d6eac4b3237d43db772b91e052a379 (diff)
downloadCMake-103dbb2fd205315c1b083ea95aac5bebd0800473.zip
CMake-103dbb2fd205315c1b083ea95aac5bebd0800473.tar.gz
CMake-103dbb2fd205315c1b083ea95aac5bebd0800473.tar.bz2
FindMatlab: Windows -wait is only for -r, not -batch
Diffstat (limited to 'Modules/MatlabTestsRedirect.cmake')
-rw-r--r--Modules/MatlabTestsRedirect.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/MatlabTestsRedirect.cmake b/Modules/MatlabTestsRedirect.cmake
index d651cdd..8973231 100644
--- a/Modules/MatlabTestsRedirect.cmake
+++ b/Modules/MatlabTestsRedirect.cmake
@@ -19,8 +19,8 @@
# -P FindMatlab_TestsRedirect.cmake
set(Matlab_UNIT_TESTS_CMD -nosplash -nodesktop -nodisplay ${Matlab_ADDITIONAL_STARTUP_OPTIONS})
-if(WIN32)
- set(Matlab_UNIT_TESTS_CMD ${Matlab_UNIT_TESTS_CMD} -wait)
+if(WIN32 AND maut_BATCH_OPTION STREQUAL "-r")
+ list(APPEND Matlab_UNIT_TESTS_CMD -wait)
endif()
if(NOT test_timeout)