FindMatlab: Windows -wait is only for -r, not -batch

This commit is contained in:
scivision 2023-03-05 00:12:18 -05:00
parent 1932ae0284
commit 103dbb2fd2
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9

View File

@ -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)