From 04899a7160f5dd4abebe93ff8f6e8871ce002e3c Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Fri, 9 Oct 2026 15:49:59 +0000 Subject: [PATCH] Fix: Exclude MacroCodeGenIdl.cmake and CODEGEN_WRITE_SERVICEFILE_INFO from release scope build - CodeGen module is excluded from release scope (S set) - Release scope modules (TetraIF, Z, Lts/Common subset) do not use CODEGEN macros - Wrapping include and macro call in RELEASE_BUILD conditional prevents ngl_codegen target reference - Resolves: make: *** No rule to make target 'ngl_codegen'. Stop. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- qt6-after/qt6-migrated-legatus/Lts/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qt6-after/qt6-migrated-legatus/Lts/CMakeLists.txt b/qt6-after/qt6-migrated-legatus/Lts/CMakeLists.txt index 47370394f..78e512c74 100644 --- a/qt6-after/qt6-migrated-legatus/Lts/CMakeLists.txt +++ b/qt6-after/qt6-migrated-legatus/Lts/CMakeLists.txt @@ -51,7 +51,10 @@ IF (BUILD_DOCS) ENDIF() # Ensure codegen macros are available before calling CODEGEN_* helpers -INCLUDE(MacroCodeGenIdl) +# Skip for release builds as CodeGen module is excluded and not needed +IF(NOT RELEASE_BUILD) + INCLUDE(MacroCodeGenIdl) +ENDIF() # Add stub headers for non-RTI/non-FilterManagement builds INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include/AudioVideoManagement/) @@ -63,4 +66,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include/LtsScriptTimeline/) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include/LtsUtilsGuiDds/) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include/Services/PresentationManagement/) -CODEGEN_WRITE_SERVICEFILE_INFO() +IF(NOT RELEASE_BUILD) + CODEGEN_WRITE_SERVICEFILE_INFO() +ENDIF()