FindMatlab: Fails to execute_process on CYGWIN
I am trying to build a matlab based project on cygwin, but there seems to be a problem with paths, cmake fails to find matlab version and mex extension.
I have attached my log, I have added a [DEBUG] line which is printing the RESULT_VARIABLE from execute_process on line 701 which returns 'No such file or directory'
To reproduce create a CMakeLists.txt containing:
project(matlab_test)
find_package(Matlab REQUIRED)
and run using:
cmake .. -DCMAKE_TOOLCHAIN_FILE=mingw-w64-x86_64.cmake -DMatlab_ROOT_DIR:FILEPATH="/cygdrive/c/Program Files/MATLAB/R2023a/" -DMATLAB_FIND_DEBUG=ON --debug-output
Edited by Brad King