diff --git a/paddle/fluid/platform/CMakeLists.txt b/paddle/fluid/platform/CMakeLists.txt index 93f29b57c8..da2c51daa8 100644 --- a/paddle/fluid/platform/CMakeLists.txt +++ b/paddle/fluid/platform/CMakeLists.txt @@ -75,7 +75,7 @@ cc_library(device_context SRCS device_context.cc init.cc DEPS simple_threadpool temp_allocator ${dgc_deps}) if (WITH_DISTRIBUTE) - cc_library(collective_helper SRCS collective_helper.cc DEPS framework_proto) + cc_library(collective_helper SRCS collective_helper.cc DEPS framework_proto device_context enforce) endif() if(WIN32)