From b426ce1d040d2f358ca21f75bf03d75339ccc0c6 Mon Sep 17 00:00:00 2001 From: Hermann von Kleist Date: Wed, 18 Sep 2024 16:56:53 +0200 Subject: [PATCH] FindMatlab: Add support for MCR distributions without mex.h Consider `matrix.h` in search for include dirs. Fixes: #26306 --- Modules/FindMatlab.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 751741c4cf..3a13473d7e 100644 --- a/Modules/FindMatlab.cmake +++ b/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 )