mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 09:08:04 +00:00
Merge changes I2de7d14d,I56392340 into ub-games-master
* changes: Added accessor for file_extension in generated code. Added missing --gen-mutable to CMakeLists.txt
This commit is contained in:
committed by
Android (Google) Code Review
commit
a0bf238b09
@@ -104,7 +104,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 -o "${SRC_FBS_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${SRC_FBS}"
|
||||
COMMAND flatc -c --gen-mutable -o "${SRC_FBS_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${SRC_FBS}"
|
||||
DEPENDS flatc)
|
||||
endfunction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user