From b190fb33e7a4c92c29ef865d27389aff6e26a0bc Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Tue, 21 Jul 2026 15:30:47 +0200 Subject: [PATCH] CMake: when migrating TetraIF, also include Lts/Proxies/TrainingAreaBase and Z/src in build tree\n\nThis ensures generated training_area header and NGLLogger are present when building TetraIF in an isolated migration run.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41f0d41ff..8a19b2644 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -359,6 +359,13 @@ endfunction() NGL_ADD_SUBDIR_GUARDED(TetraIF) NGL_ADD_SUBDIR_GUARDED(Z/src) NGL_ADD_SUBDIR_GUARDED(Lts) +# Special-case: when migrating TetraIF, also include TrainingAreaBase and Z so generated headers +# and internal logger target are available in the same build tree for TetraIF dependents. +if(DEFINED MIGRATE_MODULE AND MIGRATE_MODULE STREQUAL "TetraIF") + message(STATUS "Including helper modules for TetraIF migration: Lts/Proxies/TrainingAreaBase and Z/src") + add_subdirectory(Lts/Proxies/TrainingAreaBase) + add_subdirectory(Z/src) +endif() # at last, to make sure we get all targets in NGL_TS_TARGETS property NGL_ADD_SUBDIR_GUARDED(translations) #-----------------------------------------------------------------------------------------------------