From 0d67b3a8c9343cd2f88a27015bb8448cfe3cca37 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Fri, 9 Oct 2026 15:58:20 +0000 Subject: [PATCH] Fix: Conditionally create ngl_codegen imported target only when not RELEASE_BUILD - Added RELEASE_BUILD check to imported ngl_codegen target creation - Prevents make errors when CodeGen is excluded from release builds - Release scope modules don't use CODEGEN macros, so target is not needed Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- qt6-after/qt6-migrated-legatus/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt6-after/qt6-migrated-legatus/CMakeLists.txt b/qt6-after/qt6-migrated-legatus/CMakeLists.txt index c1897bd0a..4ab79adf3 100755 --- a/qt6-after/qt6-migrated-legatus/CMakeLists.txt +++ b/qt6-after/qt6-migrated-legatus/CMakeLists.txt @@ -200,7 +200,8 @@ OPTION(BUILD_GRANTLEE "Build CodeGen SQL files using KTextTemplate parser (KF6:: # If BUILD_GRANTLEE is OFF but ngl_codegen is needed (for IDL codegen), # provide it as an imported executable target from pre-built location -IF(NOT BUILD_GRANTLEE) +# Skip this for RELEASE_BUILD since CodeGen is excluded and ngl_codegen is not needed +IF(NOT BUILD_GRANTLEE AND NOT RELEASE_BUILD) # ngl_codegen is copied to build/bin/ by run_final_migration.sh # Create an imported target so MacroCodeGenIdl.cmake can find it IF(NOT TARGET ngl_codegen)