From 05a4be361f4f7a7f2677fd6ed487b48a7fc8cd7c Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Wed, 2 Nov 2022 19:51:10 +0800 Subject: [PATCH] fix link order (#47584) --- paddle/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/CMakeLists.txt b/paddle/CMakeLists.txt index 80f4c6bb54..937b58130d 100644 --- a/paddle/CMakeLists.txt +++ b/paddle/CMakeLists.txt @@ -58,8 +58,8 @@ if(${len} GREATER_EQUAL 1) get_property(test_arg GLOBAL PROPERTY "${test_name}_ARGS") # message("add test ${test_name}") add_executable(${test_name} ${test_src}) - target_link_libraries(${test_name} $) target_link_libraries(${test_name} paddle_gtest_main_new) + target_link_libraries(${test_name} $) add_dependencies(${test_name} ${paddle_lib} paddle_gtest_main_new) if(WITH_GPU) target_link_libraries(${test_name} ${CUDA_CUDART_LIBRARY} -- GitLab