From 3e90a4616235ce77dc7d98ad477273f01a73848d Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Sun, 14 May 2023 15:14:17 +0800 Subject: [PATCH] fix build error (#53790) * fix build error * fix build error * fix --- cmake/external/gflags.cmake | 1 + paddle/phi/capi/lib/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/external/gflags.cmake b/cmake/external/gflags.cmake index 606eb7ce1be..d73469003ee 100755 --- a/cmake/external/gflags.cmake +++ b/cmake/external/gflags.cmake @@ -21,6 +21,7 @@ set(GFLAGS_INCLUDE_DIR CACHE PATH "gflags include directory." FORCE) set(GFLAGS_REPOSITORY ${GIT_URL}/gflags/gflags.git) set(GFLAGS_TAG "v2.2.2") + if(WIN32) set(GFLAGS_LIBRARIES "${GFLAGS_INSTALL_DIR}/lib/gflags_static.lib" diff --git a/paddle/phi/capi/lib/CMakeLists.txt b/paddle/phi/capi/lib/CMakeLists.txt index 60afb74a6d4..185de92cd20 100644 --- a/paddle/phi/capi/lib/CMakeLists.txt +++ b/paddle/phi/capi/lib/CMakeLists.txt @@ -6,7 +6,7 @@ cc_library( cc_library( phi_c_device_context SRCS c_device_context.cc - DEPS phi_backends) + DEPS auto_parallel_proto phi_backends) cc_library( phi_c_int_array -- GitLab