message: mstarch: ensuring updates on dependent modules rebuild the Ac files of this component to fix
diff: @@ -72,23 +72,11 @@ endfunction(serialns)
  # - **XML_FILE_DEPS:** xml file dependencies
  # - **Return: AC_OUTPUTS** (set in outer scope)
  ####
  -function(acwrap AC_TYPE AC_FINAL_SOURCE AC_FINAL_HEADER AI_XML XML_FILE_DEPS)
  +function(acwrap AC_TYPE AC_FINAL_SOURCE AC_FINAL_HEADER AI_XML XML_FILE_DEPS XML_MOD_DEPS)
  # Setup the list such that new outputs can be appended to them
  set(OUTPUT_PRODUCTS "${AC_FINAL_SOURCE}" "${AC_FINAL_HEADER}")
  - # Detect the needed arguments for the code generator to support the following conditions
  - # 1. Component, Port, Serializable w/o Python dictionary
  - # 2. Topology w/ XML dictionary
  - # 3. Topology w/ py dict
  - # 4. Serializable w/ py dict
  - if (GENERATE_HERITAGE_PY_DICT AND ${AC_TYPE} STREQUAL "serializable")
  - serialns(${AI_XML})
  - set(GEN_ARGS "--build_root" "--default_topology_dict" "--dict_dir" "${CMAKE_BINARY_DIR}/dict")
  - list(APPEND OUTPUT_PRODUCTS "${CMAKE_BINARY_DIR}/dict/serializable/${SERIAL_NS}.py")
  - elseif (GENERATE_HERITAGE_PY_DICT AND ${AC_TYPE} STREQUAL "topologyapp")
  - set(GEN_ARGS "--build_root" "--connect_only" "--default_topology_dict" "--dict_dir" "${CMAKE_BINARY_DIR}/dict") #--dict_dir not used
  - list(APPEND OUTPUT_PRODUCTS "${CMAKE_SOURCE_DIR}/py_dict/")
  - elseif(${AC_TYPE} STREQUAL "topologyapp")
  + if(${AC_TYPE} STREQUAL "topologyapp")
  set(GEN_ARGS "--build_root" "--connect_only" "--xml_topology_dict")
  else()
  set(GEN_ARGS "--build_root")
  @@ -115,7 +103,7 @@ function(acwrap AC_TYPE AC_FINAL_SOURCE AC_FINAL_HEADER AI_XML XML_FILE_DEPS)
  #COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_COMMAND} -E copy ${HPP_NAME} ${AC_FINAL_HEADER}
  COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_COMMAND} -E remove ${CPP_NAME} ${HPP_NAME}
  #COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_COMMAND} -E remove ${HPP_NAME}
  - DEPENDS ${AI_XML} ${XML_FILE_DEPS} ${FPRIME_AC_CONSTANTS_FILE}
  + DEPENDS ${AI_XML} ${XML_FILE_DEPS} ${FPRIME_AC_CONSTANTS_FILE} ${XML_MOD_DEPS}
  )
  set(AC_OUTPUTS ${OUTPUT_PRODUCTS} PARENT_SCOPE)
  endfunction(acwrap)
  