Ignore warnings in plugin protobufs.

develop
Ben Lubar 2018-04-05 16:50:28 -05:00
parent 51661d7355
commit 7aee061258
No known key found for this signature in database
GPG Key ID: 018BAB45DB2D2B24
1 changed files with 4 additions and 0 deletions

@ -80,6 +80,10 @@ MACRO(DFHACK_PLUGIN)
SET(PLUGIN_PROTOCPP ${PLUGIN_PROTOCPP} ${CMAKE_CURRENT_SOURCE_DIR}/proto/${pbuf}.pb.cc) SET(PLUGIN_PROTOCPP ${PLUGIN_PROTOCPP} ${CMAKE_CURRENT_SOURCE_DIR}/proto/${pbuf}.pb.cc)
ENDFOREACH() ENDFOREACH()
IF(UNIX)
SET_SOURCE_FILES_PROPERTIES(${PLUGIN_PROTOCPP} PROPERTIES COMPILE_FLAGS "-Wno-misleading-indentation")
ENDIF()
# Tell CMake the source won't be available until build time. # Tell CMake the source won't be available until build time.
SET_SOURCE_FILES_PROPERTIES(${PLUGIN_PROTOCPP} PROPERTIES GENERATED 1) SET_SOURCE_FILES_PROPERTIES(${PLUGIN_PROTOCPP} PROPERTIES GENERATED 1)