projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31c58d2
)
Added TODO for the future of Matlab version sorting
author
hbristow
<hilton.bristow@gmail.com>
Sun, 15 Sep 2013 14:48:07 +0000
(
00:48
+1000)
committer
hbristow
<hilton.bristow@gmail.com>
Sun, 15 Sep 2013 14:48:07 +0000
(
00:48
+1000)
cmake/OpenCVFindMatlab.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVFindMatlab.cmake
b/cmake/OpenCVFindMatlab.cmake
index
468fdf3
..
c4a174c
100644
(file)
--- a/
cmake/OpenCVFindMatlab.cmake
+++ b/
cmake/OpenCVFindMatlab.cmake
@@
-66,6
+66,8
@@
function(locate_matlab_root)
if (MATLAB_ROOT_DIR_)
# sort in order from highest to lowest
# normally it's in the format MATLAB_R[20XX][A/B]
+ # TODO: numerical rather than lexicographic sort. However,
+ # CMake does not support floating-point MATH(EXPR ...) at this time.
list(SORT MATLAB_ROOT_DIR_)
list(REVERSE MATLAB_ROOT_DIR_)
list(GET MATLAB_ROOT_DIR_ 0 MATLAB_ROOT_DIR_)