未验证 提交 8a9f06e6 编写于 作者: Z Zhou Wei 提交者: GitHub

fix bug when compile CPU inference library (#24800)

上级 0037464b
...@@ -234,7 +234,11 @@ copy(fluid_lib_dist ...@@ -234,7 +234,11 @@ copy(fluid_lib_dist
) )
set(module "platform") set(module "platform")
set(platform_lib_deps profiler_proto error_codes_proto cuda_error_proto) set(platform_lib_deps profiler_proto error_codes_proto)
if(WITH_GPU)
set(platform_lib_deps ${platform_lib_deps} cuda_error_proto)
endif(WITH_GPU)
add_dependencies(fluid_lib_dist ${platform_lib_deps}) add_dependencies(fluid_lib_dist ${platform_lib_deps})
copy(fluid_lib_dist copy(fluid_lib_dist
SRCS ${src_dir}/${module}/*.h ${src_dir}/${module}/dynload/*.h ${src_dir}/${module}/details/*.h ${PADDLE_BINARY_DIR}/paddle/fluid/platform/*.pb.h SRCS ${src_dir}/${module}/*.h ${src_dir}/${module}/dynload/*.h ${src_dir}/${module}/details/*.h ${PADDLE_BINARY_DIR}/paddle/fluid/platform/*.pb.h
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册