diff --git a/cmake/external/gflags.cmake b/cmake/external/gflags.cmake index 606eb7ce1be6a868c033228c454ee06f028e4e24..d73469003eed3fa1e1fa8b4f19f06dbee7f9be1f 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 60afb74a6d451783665032995dc9a58eed599d1d..185de92cd20ec12fff250d06a26dadfde05c83f6 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