Skip to content

Commit

Permalink
Remove vendored FindMatlab.cmake (#1147)
Browse files Browse the repository at this point in the history
* Remove vendored FindMatlab.cmake

As all the required custom logic was merged in CMake 3.24, see robotology/robotology-superbuild#1044 (comment) .

* Fix configuration with CMake < 3.24

* Fix CMake < 3.24 configuration
  • Loading branch information
traversaro authored Jan 21, 2024
1 parent ea2fe9b commit 4098bee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1,905 deletions.
6 changes: 5 additions & 1 deletion bindings/matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ 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)
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24")
matlab_add_mex(NAME ${target_name} NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES SRC ${swig_generated_sources})
else()
matlab_add_mex(NAME ${target_name} SRC ${swig_generated_sources})
endif()
else()
add_library(${target_name} MODULE ${swig_generated_sources})
endif()
Expand Down
Loading

0 comments on commit 4098bee

Please sign in to comment.