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>
This commit is contained in:
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user