From 5b14811aaa0913d2a4a8393fc1733b8eb49dae3f Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 16 Jan 2024 13:57:09 +0100 Subject: [PATCH] Fix configuration with CMake < 3.24 --- bindings/matlab/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/matlab/CMakeLists.txt b/bindings/matlab/CMakeLists.txt index 09dd94b6425..f6f7a2b499c 100644 --- a/bindings/matlab/CMakeLists.txt +++ b/bindings/matlab/CMakeLists.txt @@ -76,7 +76,7 @@ macro(GET_LIBRARY_FROM_SWIG_WRAPPER i_main_file i_other_files target_name genera PROPERTY SWIG_DEPENDS ${i_other_files}) else() if(${target_name} STREQUAL "iDynTreeMEX") - matlab_add_mex(NAME ${target_name} SRC ${swig_generated_sources} NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES) + matlab_add_mex(NAME ${target_name} NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES SRC ${swig_generated_sources}) else() add_library(${target_name} MODULE ${swig_generated_sources}) endif()