Skip to content

Commit e986ad4

Browse files
committed
add check for patchelf in CMakelists.txt
1 parent 26ae611 commit e986ad4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,9 @@ endif()
9191
install(DIRECTORY ${PADDLE_PYTHON_PACKAGE_DIR}
9292
DESTINATION opt/paddle/share/wheels
9393
)
94+
95+
find_program(PATCHELF_EXECUTABLE patchelf)
96+
if(NOT PATCHELF_EXECUTABLE)
97+
message(FATAL_ERROR "patchelf not found, please install it.\n"
98+
"For Ubuntu, the command is: apt-get install -y patchelf.")
99+
endif()

0 commit comments

Comments
 (0)