Update FindMATLAB.cmake

There are two problems with `readlink`:
1) it might give a path relative to the symlink location,
2) if matlab bin directory is in $PATH it will yield nothing.
The use of `realpath` solves both of them.
This commit is contained in:
Alexey Kreschuk 2016-04-15 16:36:50 +03:00
parent a2c42df1dc
commit c1144325c6
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ else()
IF (MATLAB_BIN_EXISTS)
execute_process(
COMMAND which matlab
COMMAND xargs readlink
COMMAND xargs realpath
COMMAND xargs dirname
COMMAND xargs dirname
COMMAND xargs echo -n