Skip to content

Commit c8b399b

Browse files
committed
Fix flatbuffer build against previous build changes
This fixes the flatc calls which were broken due to clearer separation of build and source directory usage. Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent 541ea52 commit c8b399b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ if(OSI_BUILD_FLATBUFFER)
111111
set(fbs "${proto_base}.fbs")
112112
add_custom_command(
113113
OUTPUT "${fbs}"
114-
COMMAND $<TARGET_FILE:flatc> -I "${PROTOBUF_IMPORT_DIRS}" -o "${CMAKE_CURRENT_BINARY_DIR}" --proto "${CMAKE_CURRENT_SOURCE_DIR}/${proto}"
114+
COMMAND $<TARGET_FILE:flatc> -I "${PROTOBUF_IMPORT_DIRS}" -I "${CMAKE_CURRENT_BINARY_DIR}" -o "${CMAKE_CURRENT_BINARY_DIR}" --proto "${proto}"
115115
DEPENDS "${proto}" flatc
116-
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
116+
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
117117
COMMENT "Convert ${proto} to ${fbs} using flatc"
118118
)
119119
list(APPEND FLAT_FBS "${CMAKE_CURRENT_BINARY_DIR}/${fbs}")

0 commit comments

Comments
 (0)