未验证 提交 3fa7a736 编写于 作者: W wanghuancoder 提交者: GitHub

Fix mac link python (#48017)

* finx mac link python

* refine
上级 5033b6c2
......@@ -606,5 +606,12 @@ if(WITH_PYTHON)
target_link_libraries(${SHARD_LIB_NAME} ${os_dependency_modules})
add_dependencies(${SHARD_LIB_NAME} op_function_generator_cmd)
target_link_libraries(${SHARD_LIB_NAME} ${PYTHON_LIBRARIES})
if(APPLE)
string(REGEX REPLACE ".+/(.+)" "\\1" PYTHON_LIBRARY_NAME
${PYTHON_LIBRARIES})
# target_link_libraries(${SHARD_LIB_NAME} "-Wl,-rpath,${PYTHON_LIBRARY_NAME}")
else()
target_link_libraries(${SHARD_LIB_NAME} ${PYTHON_LIBRARIES})
endif()
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册