未验证 提交 05a4be36 编写于 作者: L Leo Chen 提交者: GitHub

fix link order (#47584)

上级 0967506e
......@@ -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_LINKER_FILE:${paddle_lib}>)
target_link_libraries(${test_name} paddle_gtest_main_new)
target_link_libraries(${test_name} $<TARGET_LINKER_FILE:${paddle_lib}>)
add_dependencies(${test_name} ${paddle_lib} paddle_gtest_main_new)
if(WITH_GPU)
target_link_libraries(${test_name} ${CUDA_CUDART_LIBRARY}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册