Tests: Fix FindMatlab.no_implicit_link_checks

`matlab_add_mex` uses the plain signature of `target_link_libraries`,
so we need to use the plain signature also outside of `matlab_add_mex`
to avoid a configuration error.
This commit is contained in:
Silvio Traversaro
2024-06-04 12:15:36 -04:00
committed by Brad King
parent 57c6dd277e
commit e265065ed6

View File

@@ -58,7 +58,7 @@ endif()
# Link separately with Matlab::mx and Matlab::mex to ensure that compilation
# and run of the test is successful
target_link_libraries(cmake_matlab_test_wrapper1 PRIVATE Matlab::mx Matlab::mex)
target_link_libraries(cmake_matlab_test_wrapper1 Matlab::mx Matlab::mex)
if(RUN_UNIT_TESTS)
matlab_add_unit_test(