!48692 [MD] Fix compilation dependency of GNN module

Merge pull request !48692 from xiaotianci/fix_proto_dependency
This commit is contained in:
i-robot 2023-02-10 21:26:56 +00:00 committed by Gitee
commit 6bb7c08540
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ add_dependencies(kernels-dvpp-image core)
if(ENABLE_PYTHON)
add_dependencies(APItoPython core)
add_dependencies(APItoPython engine-gnn)
endif()
if(NOT ENABLE_SECURITY)
add_dependencies(engine-perf core)

View File

@ -25,6 +25,6 @@ else()
ms_protobuf_generate(TENSOR_PROTO_SRCS TENSOR_PROTO_HDRS "gnn_tensor.proto")
ms_grpc_generate(GNN_PROTO_SRCS GNN_PROTO_HDRS "gnn_graph_data.proto")
add_library(engine-gnn OBJECT ${DATASET_ENGINE_GNN_SRC_FILES} ${TENSOR_PROTO_SRCS} ${GNN_PROTO_SRCS})
add_library(engine-gnn OBJECT ${TENSOR_PROTO_SRCS} ${GNN_PROTO_SRCS} ${DATASET_ENGINE_GNN_SRC_FILES})
add_dependencies(engine-gnn mindspore::protobuf)
endif()