From 048c4e38b1f081939a42ca4f44df27c7124e944a Mon Sep 17 00:00:00 2001 From: engineer <1292846099@qq.com> Date: Tue, 20 Sep 2022 14:57:03 +0800 Subject: [PATCH] Fix Python Link Order Error (#46259) --- cmake/generic.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index 6f74169e70b..5c1f6908b22 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -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() -- GitLab