File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,15 @@ install(DIRECTORY ${PADDLE_PYTHON_PACKAGE_DIR}
92
92
DESTINATION opt/paddle/share/wheels
93
93
)
94
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 ()
95
+ if (APPLE )
96
+ find_program (INSTALL_NAME_TOOL_EXECUTABLE install_name_tool )
97
+ if (NOT INSTALL_NAME_TOOL_EXECUTABLE )
98
+ message (FATAL_ERROR "install_name_tool not found, please check.\n " )
99
+ endif ()
100
+ else (APPLE )
101
+ find_program (PATCHELF_EXECUTABLE patchelf )
102
+ if (NOT PATCHELF_EXECUTABLE )
103
+ message (FATAL_ERROR "patchelf not found, please install it.\n "
104
+ "For Ubuntu, the command is: apt-get install -y patchelf." )
105
+ endif ()
106
+ endif (APPLE )
You can’t perform that action at this time.
0 commit comments