diff options
author | Silvio Traversaro <pegua1@gmail.com> | 2024-06-04 16:15:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-06-04 18:01:23 (GMT) |
commit | e265065ed6b72fd5dac433d8877f29add4b6eed9 (patch) | |
tree | 3c3bd905f5d28e8f3cda681a380b866a54d225e3 /Tests | |
parent | 57c6dd277e38375d9decd1ac4331615775bb2fb1 (diff) | |
download | CMake-e265065ed6b72fd5dac433d8877f29add4b6eed9.zip CMake-e265065ed6b72fd5dac433d8877f29add4b6eed9.tar.gz CMake-e265065ed6b72fd5dac433d8877f29add4b6eed9.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt b/Tests/FindMatlab/no_implicit_link_checks/CMakeLists.txt index 58db0ec..7e1bbae 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( |