Skip to content

Commit

Permalink
Merge pull request #91 from robotology/onlylinkrequiredmatlablibraries
Browse files Browse the repository at this point in the history
Only link required MATLAB libraries
  • Loading branch information
traversaro authored Jul 5, 2022
2 parents 3a33e22 + cce78fe commit 4e797d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if(YARP_USES_MATLAB)
COMPONENTS MX_LIBRARY)

swig_compile_module(${mexname} matlab)
target_link_libraries(${mexname} ${Matlab_LIBRARIES} ${YARP_LIBRARIES})
target_link_libraries(${mexname} ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} ${YARP_LIBRARIES})
target_include_directories(${mexname} PRIVATE ${Matlab_INCLUDE_DIRS})

set_target_properties(${mexname} PROPERTIES PREFIX "" SUFFIX .${Matlab_MEX_EXTENSION})
Expand Down

0 comments on commit 4e797d3

Please sign in to comment.