Skip to content

Commit

Permalink
Revert "Fix mac link python (PaddlePaddle#48017)"
Browse files Browse the repository at this point in the history
This reverts commit 3fa7a73.
  • Loading branch information
chenwhql committed Nov 30, 2022
1 parent 3fa7a73 commit b1d09f7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions paddle/fluid/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,5 @@ if(WITH_PYTHON)
target_link_libraries(${SHARD_LIB_NAME} ${os_dependency_modules})
add_dependencies(${SHARD_LIB_NAME} op_function_generator_cmd)

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()

target_link_libraries(${SHARD_LIB_NAME} ${PYTHON_LIBRARIES})
endif()

0 comments on commit b1d09f7

Please sign in to comment.