|
|
|
@ -92,8 +92,15 @@ 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()
|
|
|
|
|
if(APPLE)
|
|
|
|
|
find_program(INSTALL_NAME_TOOL_EXECUTABLE install_name_tool)
|
|
|
|
|
if(NOT INSTALL_NAME_TOOL_EXECUTABLE)
|
|
|
|
|
message(FATAL_ERROR "install_name_tool not found, please check.\n")
|
|
|
|
|
endif()
|
|
|
|
|
else(APPLE)
|
|
|
|
|
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()
|
|
|
|
|
endif(APPLE)
|
|
|
|
|