Skip to content

Commit

Permalink
Fix auto generated file path (hyperion-project#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-seker committed Aug 8, 2020
1 parent 13205a9 commit 29ee5e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions libsrc/flatbufserver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 29ee5e2

Please sign in to comment.