From e8bc4a48c6125949c451bc801250ea9bca4e4b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=A3=8A?= Date: Mon, 22 Mar 2021 14:47:50 +0800 Subject: [PATCH] fixed compile issue of proto --- ge/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ge/CMakeLists.txt b/ge/CMakeLists.txt index ef7f6e1c..bd9edd86 100755 --- a/ge/CMakeLists.txt +++ b/ge/CMakeLists.txt @@ -66,6 +66,11 @@ target_compile_definitions(ge_proto_client PRIVATE google=ascend_private ) +target_include_directories(ge_proto_client PRIVATE + ${CMAKE_BINARY_DIR}/proto/ge_client + ${CMAKE_BINARY_DIR}/proto/ge_client/proto +) + target_compile_options(ge_proto_client PRIVATE -O2 -fno-common