From a33d44382b224c6cf715e027d81ba51643fec06d Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Tue, 21 Jul 2026 14:14:44 +0200 Subject: [PATCH] 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> --- TetraIF/LogView/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/TetraIF/LogView/CMakeLists.txt b/TetraIF/LogView/CMakeLists.txt index bd3ee7067..81af27a5f 100644 --- a/TetraIF/LogView/CMakeLists.txt +++ b/TetraIF/LogView/CMakeLists.txt @@ -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()