forked from mindspore-Ecosystem/mindspore
!48692 [MD] Fix compilation dependency of GNN module
Merge pull request !48692 from xiaotianci/fix_proto_dependency
This commit is contained in:
commit
6bb7c08540
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue