From 34b326e235a18134a9c0958cf2eab2e7000cc892 Mon Sep 17 00:00:00 2001 From: Roman Sobkuliak Date: Tue, 23 May 2023 17:32:13 +0200 Subject: [PATCH 1/2] Add codegen dependency --- cmake/autocoder/ai_xml.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/autocoder/ai_xml.cmake b/cmake/autocoder/ai_xml.cmake index a2ea3d76b5..04dd2866fa 100644 --- a/cmake/autocoder/ai_xml.cmake +++ b/cmake/autocoder/ai_xml.cmake @@ -108,7 +108,7 @@ function(ai_xml_setup_autocode AC_INPUT_FILE) OUTPUT ${GENERATED_FILES} COMMAND ${AI_BASE_SCRIPT} --connect_only --xml_topology_dict "${AC_INPUT_FILE}" COMMAND ${CMAKE_COMMAND} -E remove ${REMOVALS} - DEPENDS "${AC_INPUT_FILE}" "${MODULE_DEPENDENCIES}" "${AC_INPUT_FILE}" "${FILE_DEPENDENCIES}" + DEPENDS "${AC_INPUT_FILE}" "${MODULE_DEPENDENCIES}" "${AC_INPUT_FILE}" "${FILE_DEPENDENCIES}" "${CODEGEN_TARGET}" ) else() add_custom_command( From e1c91565662143c173ece7f79d570c3808fb0865 Mon Sep 17 00:00:00 2001 From: Roman Sobkuliak Date: Tue, 23 May 2023 17:44:36 +0200 Subject: [PATCH 2/2] Remove repeated dependency --- cmake/autocoder/ai_xml.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/autocoder/ai_xml.cmake b/cmake/autocoder/ai_xml.cmake index 04dd2866fa..e278e231f6 100644 --- a/cmake/autocoder/ai_xml.cmake +++ b/cmake/autocoder/ai_xml.cmake @@ -108,7 +108,7 @@ function(ai_xml_setup_autocode AC_INPUT_FILE) OUTPUT ${GENERATED_FILES} COMMAND ${AI_BASE_SCRIPT} --connect_only --xml_topology_dict "${AC_INPUT_FILE}" COMMAND ${CMAKE_COMMAND} -E remove ${REMOVALS} - DEPENDS "${AC_INPUT_FILE}" "${MODULE_DEPENDENCIES}" "${AC_INPUT_FILE}" "${FILE_DEPENDENCIES}" "${CODEGEN_TARGET}" + DEPENDS "${AC_INPUT_FILE}" "${MODULE_DEPENDENCIES}" "${FILE_DEPENDENCIES}" "${CODEGEN_TARGET}" ) else() add_custom_command(