提交 6820b8f5 编写于 作者: H hedaoyuan

fix error when WITH_TESTING=OFF

上级 918c1ed1
......@@ -107,7 +107,6 @@ function(link_paddle_exe TARGET_NAME)
paddle_parameter
paddle_proto
paddle_cuda
paddle_test_main
${METRIC_LIBS}
${PROTOBUF_LIBRARY}
${LIBGLOG_LIBRARY}
......@@ -156,7 +155,7 @@ endfunction()
function(link_paddle_test TARGET_NAME)
link_paddle_exe(${TARGET_NAME})
target_link_libraries(${TARGET_NAME} ${GTEST_MAIN_LIBRARIES}
${GTEST_LIBRARIES})
${GTEST_LIBRARIES} paddle_test_main)
endfunction()
# add_unittest_without_exec
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册