mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 10:12:27 +00:00
[C++] Fix flatc arguments in CMakeLists
This commit is contained in:
@@ -314,7 +314,7 @@ function(compile_flatbuffers_schema_to_cpp_opt SRC_FBS OPT)
|
|||||||
string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS})
|
string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS})
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${GEN_HEADER}
|
OUTPUT ${GEN_HEADER}
|
||||||
COMMAND "${FLATBUFFERS_FLATC_EXECUTABLE}" -c
|
COMMAND "${FLATBUFFERS_FLATC_EXECUTABLE}" -c --gen-mutable
|
||||||
--gen-object-api --gen-compare -o "${SRC_FBS_DIR}"
|
--gen-object-api --gen-compare -o "${SRC_FBS_DIR}"
|
||||||
--cpp-ptr-type flatbuffers::unique_ptr # Used to test with C++98 STLs
|
--cpp-ptr-type flatbuffers::unique_ptr # Used to test with C++98 STLs
|
||||||
--reflect-names ${OPT}
|
--reflect-names ${OPT}
|
||||||
|
|||||||
Reference in New Issue
Block a user