mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
cmake: update matlab path
This commit is contained in:
parent
595fd2757c
commit
a986db56c6
@ -62,7 +62,7 @@ function(locate_matlab_root)
|
||||
# possible root locations, in order of likelihood
|
||||
set(SEARCH_DIRS_ /Applications /usr/local /opt/local /usr /opt)
|
||||
foreach (DIR_ ${SEARCH_DIRS_})
|
||||
file(GLOB MATLAB_ROOT_DIR_ ${DIR_}/MATLAB/R*)
|
||||
file(GLOB MATLAB_ROOT_DIR_ ${DIR_}/MATLAB/R* ${DIR_}/MATLAB_R*)
|
||||
if (MATLAB_ROOT_DIR_)
|
||||
# sort in order from highest to lowest
|
||||
# normally it's in the format MATLAB_R[20XX][A/B]
|
||||
|
Loading…
Reference in New Issue
Block a user