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 .
On some platforms,
Matlab_LIBRARIES
contains libraries such aslibMatlabEngine.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 withlibMatlabEngine.so
and used in a system withoutlibMatlabEngine.so
, generating problems such as https://github.com/robotology/robotology-superbuild/issues/1194 .