Skip to content

Commit 6a749d1

Browse files
authored
Merge pull request #12066 from luotao1/find_patchelf
add check for patchelf in CMakelists.txt
2 parents e91ecd5 + 8cd1c7b commit 6a749d1

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)