find Matlab fails under Linux with R2016a
I've got matlab R2016a installed on Linux debian 64 bits. During configuration, find_package(Matlab) fails. I've got the following error:
CMake Error at /opt/cmake-3.6.2/share/cmake-3.6/Modules/FindMatlab.cmake:1030 (list):
list GET given empty list
Call Stack (most recent call first):
/opt/cmake-3.6.2/share/cmake-3.6/Modules/FindMatlab.cmake:1236 (_Matlab_get_version_from_root)
matlab/CMakeLists.txt:7 (find_package)
I've got the same error If I set Matlab_ROOT_DIR before calling cmake. If I rerun "cmake ." after this error, everything works fine.
cmake-3.6.2 installed from sources ...