Skip to content

Commit

Permalink
Fix Python Link Order Error (PaddlePaddle#46259)
Browse files Browse the repository at this point in the history
  • Loading branch information
engineer1109 authored and chenwhql committed Nov 9, 2022
1 parent 51248f8 commit eb4981b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/generic.cmake
Expand Up @@ -388,7 +388,8 @@ function(cc_library TARGET_NAME)
target_link_libraries(${TARGET_NAME} "-Wl,-undefined,dynamic_lookup")
endif()
endif()
target_link_libraries(${TARGET_NAME} ${cc_library_DEPS})
target_link_libraries(${TARGET_NAME} ${cc_library_DEPS}
${PYTHON_LIBRARIES})
common_link(${TARGET_NAME})
endif()

Expand Down

0 comments on commit eb4981b

Please sign in to comment.