diff --git a/ge/CMakeLists.txt b/ge/CMakeLists.txt index 32a64858..a00aa4be 100755 --- a/ge/CMakeLists.txt +++ b/ge/CMakeLists.txt @@ -32,6 +32,7 @@ protobuf_generate(ge PROTO_SRCS PROTO_HDRS ${PROTO_LIST}) protobuf_generate(ge PROTO_CLIENT_SRCS PROTO_CLIENT_HDRS ${PROTO_CLIENT_LIST}) protobuf_generate(ge PROTO_HEADER_SRCS PROTO_HEADER_HDRS ${PROTO_HEADER_LIST}) +message("CMAKE_CXX_COMPILER_VERSION = ${CMAKE_CXX_COMPILER_VERSION}") if (NOT ENABLE_D AND NOT ENABLE_ACL AND NOT ENABLE_MS_TESTCASES) ############ libge_proto_common.a ############ add_library(ge_proto_common STATIC @@ -700,8 +701,8 @@ target_compile_definitions(ge_runner PRIVATE target_compile_options(ge_runner PRIVATE -O2 -fno-common - $<$:-Werror=unused-variable> - $<$:-Werror=unused-const-variable> + $<$:-Werror=unused-variable> + $<$:-Werror=unused-const-variable> ) target_include_directories(ge_runner SYSTEM PRIVATE @@ -769,8 +770,8 @@ target_compile_definitions(ge_compiler PRIVATE target_compile_options(ge_compiler PRIVATE -O2 -fno-common - $<$:-Werror=unused-variable> - $<$:-Werror=unused-const-variable> + $<$:-Werror=unused-variable> + $<$:-Werror=unused-const-variable> ) target_include_directories(ge_compiler SYSTEM PRIVATE