mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 05:20:01 +00:00
generated cmake command for flatc generation should depend on source file (#5087)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
58e8552da0
commit
60a0f35fbc
@@ -45,6 +45,7 @@ if(FLATBUFFERS_FOUND)
|
|||||||
add_custom_command(OUTPUT ${FLATC_OUTPUT}
|
add_custom_command(OUTPUT ${FLATC_OUTPUT}
|
||||||
COMMAND ${FLATBUFFERS_FLATC_EXECUTABLE}
|
COMMAND ${FLATBUFFERS_FLATC_EXECUTABLE}
|
||||||
ARGS -c -o "${CMAKE_CURRENT_BINARY_DIR}/" ${FILE}
|
ARGS -c -o "${CMAKE_CURRENT_BINARY_DIR}/" ${FILE}
|
||||||
|
DEPENDS ${FILE}
|
||||||
COMMENT "Building C++ header for ${FILE}"
|
COMMENT "Building C++ header for ${FILE}"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|||||||
Reference in New Issue
Block a user