diff --git a/cmake/util.cmake b/cmake/util.cmake index 0f60d9c6a31e63caf44eb19806bb162e4093a29b..0022e68be0abd02970d66282f1ada4e71382621b 100644 --- a/cmake/util.cmake +++ b/cmake/util.cmake @@ -154,8 +154,9 @@ endfunction() # Rest Arguemnts: not used. function(link_paddle_test TARGET_NAME) link_paddle_exe(${TARGET_NAME}) - target_link_libraries(${TARGET_NAME} ${GTEST_MAIN_LIBRARIES} - ${GTEST_LIBRARIES} paddle_test_main) + target_link_libraries(${TARGET_NAME} + ${GTEST_LIBRARIES} + paddle_test_main) endfunction() # add_unittest_without_exec