From 60a0f35fbc43e578ffa2ea06c2956380a4bff10b Mon Sep 17 00:00:00 2001 From: Christian Lang <40569665+langchr86@users.noreply.github.com> Date: Thu, 13 Dec 2018 20:56:51 +0100 Subject: [PATCH] generated cmake command for flatc generation should depend on source file (#5087) --- CMake/FindFlatBuffers.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/CMake/FindFlatBuffers.cmake b/CMake/FindFlatBuffers.cmake index 675ea8871..aad9a6bfb 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()