Merge pull request #12066 from luotao1/find_patchelf

add check for patchelf in CMakelists.txt
guochaorong-patch-1
Tao Luo 7 years ago committed by GitHub
commit 6a749d126f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save