diff --git a/cmake/Msg-Interface.cmake b/cmake/Msg-Interface.cmake index 9c119f2..dd6f425 100644 --- a/cmake/Msg-Interface.cmake +++ b/cmake/Msg-Interface.cmake @@ -21,6 +21,7 @@ function(add_interface) add_custom_command( OUTPUT ${header_path} COMMAND ${XPCG} ${arg_PATH} + DEPENDS ${arg_PATH} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${arg_PARENT_DIR} COMMENT "Generating interface: ${arg_NAME}")