From ec5d238e5e617269c954c9637876fb3012dfafbf Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Thu, 5 Apr 2018 16:46:04 -0500 Subject: [PATCH] Remove warnings in generated code for core protobufs. --- library/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 020a38c4d..6caab0a76 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -244,6 +244,10 @@ ADD_CUSTOM_COMMAND( DEPENDS protoc-bin ${PROJECT_PROTOS} ) +IF(UNIX) + SET_SOURCE_FILES_PROPERTIES(${PROJECT_PROTO_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-misleading-indentation") +ENDIF() + ADD_CUSTOM_TARGET(generate_proto_core DEPENDS ${PROJECT_PROTO_TMP_FILES}) # Merge headers into sources