Skip to content

FindMatlab: Fix Matlab_LIBRARIES for MCR

MR !5600 (merged) fixed the calls to target_link_libraries in matlab_add_mex if Matlab_DATAARRAY_LIBRARY or Matlab_ENGINE_LIBRARY are not found, but still inserted their invalid values in the Matlab_LIBRARIES output variable.

This MR fixes this by adding Matlab_DATAARRAY_LIBRARY or Matlab_ENGINE_LIBRARY to Matlab_LIBRARIES only if they are valid libraries.

Backport: release
Topic-rename: FindMatlab-MCR-vars

Edited by Brad King

Merge request reports

Loading