From e265065ed6b72fd5dac433d8877f29add4b6eed9 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 4 Jun 2024 12:15:36 -0400 Subject: [PATCH] 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. --- Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt b/Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt index 58db0ecea0..7e1bbaeabb 100644 --- a/Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt +++ b/Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt @@ -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(