提交 3b481573 编写于 作者: M Marius Muja

Don't abort the build process with an error if MATLAB is not found.

... just skip building the MATLAB bindings.
上级 f24e2ecf
......@@ -47,7 +47,8 @@ if(MEX_CMD AND MEXEXT_CMD)
DESTINATION share/flann/matlab
)
else()
message(SEND_ERROR "The 'mex' and 'mexext' programs have been found in different locations. It's likely that one of them is not part of the MATLAB instalation. Make sure that the 'bin' directory from the MATLAB instalation is in PATH")
message(WARNING "The 'mex' and 'mexext' programs have been found in different locations. It's likely that one of them is not part of the MATLAB instalation. Make sure that the 'bin' directory from the MATLAB instalation is in PATH")
set(BUILD_MATLAB_BINDINGS OFF)
endif()
elseif(OCT_CMD)
SET(MEX_FILE ${CMAKE_CURRENT_BINARY_DIR}/${MEX_NAME}.mex)
......@@ -68,6 +69,7 @@ elseif(OCT_CMD)
DESTINATION share/flann/octave
)
else()
message(SEND_ERROR "Cannot find MATLAB or Octave instalation. Make sure that the 'bin' directory from the MATLAB instalation or that mkoctfile is in PATH")
message(WARNING "Cannot find MATLAB or Octave instalation. Make sure that the 'bin' directory from the MATLAB instalation or that mkoctfile is in PATH")
set(BUILD_MATLAB_BINDINGS OFF)
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册