未验证 提交 6a749d12 编写于 作者: T Tao Luo 提交者: GitHub

Merge pull request #12066 from luotao1/find_patchelf

add check for patchelf in CMakelists.txt
......@@ -91,3 +91,9 @@ endif()
install(DIRECTORY ${PADDLE_PYTHON_PACKAGE_DIR}
DESTINATION opt/paddle/share/wheels
)
find_program(PATCHELF_EXECUTABLE patchelf)
if(NOT PATCHELF_EXECUTABLE)
message(FATAL_ERROR "patchelf not found, please install it.\n"
"For Ubuntu, the command is: apt-get install -y patchelf.")
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册