Skip to content

Commit c60c6b8

Browse files
committed
Explicitly list the Flatbuffer source files
FlatBuffers_Library_SRCS is not always set, so just list the source files directly.
1 parent ecccb23 commit c60c6b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ endif()
300300

301301
if(ANDROID OR IOS)
302302
# If building for Android or iOS, include the Flatbuffers source files directly.
303-
set(app_flatbuffers_srcs ${FlatBuffers_Library_SRCS})
303+
set(app_flatbuffers_srcs
304+
${FLATBUFFERS_SOURCE_DIR}/src/idl_parser.cpp
305+
${FLATBUFFERS_SOURCE_DIR}/src/idl_gen_text.cpp
306+
${FLATBUFFERS_SOURCE_DIR}/src/reflection.cpp
307+
${FLATBUFFERS_SOURCE_DIR}/src/util.cpp)
304308
set(app_flatbuffers_lib)
305309
else()
306310
set(app_flatbuffers_srcs)

0 commit comments

Comments
 (0)