robotology / yarp-matlab-bindings

SWIG-based bindings of YARP for Matlab and Octave, based on the MEX C-API.
6 stars 5 forks source link

Only link required MATLAB libraries #91

Closed traversaro closed 2 years ago

traversaro commented 2 years ago

On some platforms, Matlab_LIBRARIES contains libraries such as libMatlabEngine.so that are not part of all matlab installations. So, it is better to explicitly link only the required libraries, to avoid problems when a binary is compiled in a system with libMatlabEngine.so and used in a system without libMatlabEngine.so, generating problems such as https://github.com/robotology/robotology-superbuild/issues/1194 .

traversaro commented 2 years ago

Change merged in master with https://github.com/robotology/yarp-matlab-bindings/commit/64131810a079a5aa92e0b8c733e94a8c1297aee1 .