TetraIF/LogView: guard add_dependencies for generated helper targets (avoid missing training_area_telegrams.h_bin error during configure)\n\nOnly add dependencies if helper targets exist so configure succeeds in migration builds where those generators are absent.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
torsten committed 2026-07-21 14:14:44 +02:00
1 parent 70cdf12c82
commit a33d44382b
1 file changed
+11 -1
+11 -1
View File
@@ -99,6 +99,16 @@ else()
endif()
if (TARGET LogView)
add_dependencies(LogView zsksxd_tetraForLogView.x_bin training_area_telegrams.h_bin)
# Only add dependencies for locally-created helper targets if they exist.
set(_logview_deps)
if (TARGET zsksxd_tetraForLogView.x_bin)
list(APPEND _logview_deps zsksxd_tetraForLogView.x_bin)
endif()
if (TARGET training_area_telegrams.h_bin)
list(APPEND _logview_deps training_area_telegrams.h_bin)
endif()
if(_logview_deps)
add_dependencies(LogView ${_logview_deps})
endif()
endif()