Skip to content

Commit

Permalink
Revert "[Cherry-pick] Fix python link error (PaddlePaddle#47811)"
Browse files Browse the repository at this point in the history
This reverts commit ff642c6.
  • Loading branch information
chenwhql committed Nov 30, 2022
1 parent b1d09f7 commit 10486ed
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions paddle/fluid/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ if(WITH_PYTHON)
list(APPEND OP_FUNCTION_GENERETOR_DEPS cncl_context)
endif()

if(NOT ((NOT WITH_PYTHON) AND ON_INFER))
list(APPEND OP_FUNCTION_GENERETOR_DEPS ${PYTHON_LIBRARIES})
endif()

add_executable(op_function_generator op_function_generator.cc)
target_link_libraries(op_function_generator ${OP_FUNCTION_GENERETOR_DEPS})
add_executable(eager_legacy_op_function_generator
Expand Down Expand Up @@ -605,6 +601,4 @@ if(WITH_PYTHON)
get_property(os_dependency_modules GLOBAL PROPERTY OS_DEPENDENCY_MODULES)
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})
endif()

0 comments on commit 10486ed

Please sign in to comment.