diff options
author | Christian Lang <40569665+langchr86@users.noreply.github.com> | 2018-12-13 20:56:51 +0100 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-12-13 11:56:51 -0800 |
commit | 60a0f35fbc43e578ffa2ea06c2956380a4bff10b (patch) | |
tree | c5197dd404315ffe092e0b0f588f81e892429155 /CMake | |
parent | 58e8552da08e602753b42c727748c0117fb3f071 (diff) | |
download | flatbuffers-60a0f35fbc43e578ffa2ea06c2956380a4bff10b.tar.gz flatbuffers-60a0f35fbc43e578ffa2ea06c2956380a4bff10b.tar.bz2 flatbuffers-60a0f35fbc43e578ffa2ea06c2956380a4bff10b.zip |
generated cmake command for flatc generation should depend on source file (#5087)
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindFlatBuffers.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMake/FindFlatBuffers.cmake b/CMake/FindFlatBuffers.cmake index 675ea887..aad9a6bf 100644 --- a/CMake/FindFlatBuffers.cmake +++ b/CMake/FindFlatBuffers.cmake @@ -45,6 +45,7 @@ if(FLATBUFFERS_FOUND) add_custom_command(OUTPUT ${FLATC_OUTPUT} COMMAND ${FLATBUFFERS_FLATC_EXECUTABLE} ARGS -c -o "${CMAKE_CURRENT_BINARY_DIR}/" ${FILE} + DEPENDS ${FILE} COMMENT "Building C++ header for ${FILE}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endforeach() |