From 25523bb8e67496e8f761f6da1351c034e1980759 Mon Sep 17 00:00:00 2001 From: peizhilin Date: Thu, 3 Jan 2019 16:46:56 +0800 Subject: [PATCH] test=develop --- cmake/generic.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index 9419ffbad0..49e8dcb70a 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -447,10 +447,10 @@ function(nv_test TARGET_NAME) set(multiValueArgs SRCS DEPS) cmake_parse_arguments(nv_test "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) cuda_add_executable(${TARGET_NAME} ${nv_test_SRCS}) + target_link_libraries(${TARGET_NAME} ${nv_test_DEPS} paddle_gtest_main lod_tensor memory gtest gflags glog) if(WIN32) - list(APPEND nv_test_DEPS shlwapi) + target_link_libraries(${TARGET_NAME} shlwapi) endif(WIN32) - target_link_libraries(${TARGET_NAME} ${nv_test_DEPS} paddle_gtest_main lod_tensor memory gtest gflags glog) add_dependencies(${TARGET_NAME} ${nv_test_DEPS} paddle_gtest_main lod_tensor memory gtest gflags glog) common_link(${TARGET_NAME}) add_test(${TARGET_NAME} ${TARGET_NAME}) -- GitLab