Browse Source

fixed compile issue of proto

tags/v1.3.0
李磊 4 years ago
parent
commit
e8bc4a48c6
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      ge/CMakeLists.txt

+ 5
- 0
ge/CMakeLists.txt View File

@@ -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


Loading…
Cancel
Save