From 4a3fb0bfe302a0756f838c1ad1d2fb505d76e564 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Fri, 9 Oct 2026 16:08:48 +0000 Subject: [PATCH] Fix: Wrap MacroCodeGenIdl include in RELEASE_BUILD conditional - Main CMakeLists.txt line 783 includes MacroCodeGenIdl.cmake unconditionally - This causes ngl_codegen target reference even when CodeGen module is excluded - Wrap INCLUDE(MacroCodeGenIdl) in IF(NOT RELEASE_BUILD) to skip for release builds - Prevents 'make: *** No rule to make target ngl_codegen' error in release scope builds Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- qt6-after/qt6-migrated-legatus/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt6-after/qt6-migrated-legatus/CMakeLists.txt b/qt6-after/qt6-migrated-legatus/CMakeLists.txt index 4ab79adf3..f093b36be 100755 --- a/qt6-after/qt6-migrated-legatus/CMakeLists.txt +++ b/qt6-after/qt6-migrated-legatus/CMakeLists.txt @@ -780,7 +780,10 @@ ENDIF() # Ein paar NGL-spezifische Macros # INCLUDE(NGLMacros) -INCLUDE(MacroCodeGenIdl) +# Skip MacroCodeGenIdl for release builds as CodeGen module is excluded +IF(NOT RELEASE_BUILD) + INCLUDE(MacroCodeGenIdl) +ENDIF() # # Projektspezifische Einstellungen?