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>
This commit is contained in:
torstenandCopilot committed 2026-10-09 16:08:48 +00:00
1 parent 0d67b3a8c9
commit 4a3fb0bfe3
1 file changed
+4 -1
@@ -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?