mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 09:18:17 +00:00
Make generating dependent include files for C++ the default.
--gen-includes is now deprecate but still accepted. --no-includes can be used instead when needed. Change-Id: I2cd46d193032b9b7c31c76c6f655e9333d3a393a Tested: on Linux.
This commit is contained in:
@@ -108,7 +108,7 @@ function(compile_flatbuffers_schema_to_cpp SRC_FBS)
|
||||
string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS})
|
||||
add_custom_command(
|
||||
OUTPUT ${GEN_HEADER}
|
||||
COMMAND flatc -c --gen-mutable -o "${SRC_FBS_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${SRC_FBS}"
|
||||
COMMAND flatc -c --no-includes --gen-mutable -o "${SRC_FBS_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${SRC_FBS}"
|
||||
DEPENDS flatc)
|
||||
endfunction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user