FindMatlab: Add support for MCR distributions without mex.h

Consider `matrix.h` in search for include dirs.

Fixes: #26306
This commit is contained in:
Hermann von Kleist
2024-09-18 16:56:53 +02:00
committed by Brad King
parent cd4782bac3
commit b426ce1d04

View File

@@ -1832,7 +1832,7 @@ set(_matlab_required_variables)
# the MEX library/header are required
find_path(
Matlab_INCLUDE_DIRS
NAMES mex.h
NAMES mex.h matrix.h
PATHS ${MATLAB_INCLUDE_DIR_TO_LOOK}
NO_DEFAULT_PATH
)