Update OpenCVFindMatlab.cmake
Added fix to OpenCVFindMatlab.cmake to properly locate modern versions of unix- MATLAB. Tested with MATLAB R2015a and Ubuntu 14.04.
This commit is contained in:
		@@ -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*)
 | 
			
		||||
      file(GLOB MATLAB_ROOT_DIR_ ${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]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user