Fix auto generated file path (#940)

This commit is contained in:
Murat Seker 2020-08-08 12:52:49 +02:00 committed by GitHub
parent 13205a9d11
commit 29ee5e2c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

4
.gitignore vendored
View File

@ -18,3 +18,7 @@ CMakeCache.txt
.directory
*.pyc
compile_commands.json
# Autogenerated by flatbuffers
libsrc/flatbufserver/hyperion_reply_generated.h
libsrc/flatbufserver/hyperion_request_generated.h

View File

@ -19,10 +19,9 @@ set(Flatbuffer_FBS
${CURRENT_SOURCE_DIR}/hyperion_reply.fbs
${CURRENT_SOURCE_DIR}/hyperion_request.fbs
)
FOREACH(FBS_FILE ${Flatbuffer_FBS})
compile_flattbuffer_schema(${FBS_FILE} ${CMAKE_CURRENT_BINARY_DIR})
ENDFOREACH(FBS_FILE)
compile_flattbuffer_schema(${FBS_FILE} ${CMAKE_CURRENT_SOURCE_DIR})
ENDFOREACH(FBS_FILE)
# let cmake know about new generated source files
set_source_files_properties(