Browse Source

FindMatlab: Add support for MCR distributions without mex.h

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

Fixes: #26306
Hermann von Kleist 1 year ago
parent
commit
b426ce1d04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindMatlab.cmake

+ 1 - 1
Modules/FindMatlab.cmake

@@ -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
   )