diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-07-01 11:41:24 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-07-06 14:56:51 +0000 |
commit | df6b2bb5e82ff71ab54ca80073b47027aecc1d86 (patch) | |
tree | a1b16750051e1021f5a27f5f9c1a40f6407dec96 | |
parent | a53e953189bb4021a287f551430d3724177aa0a1 (diff) |
qt6_add_statecharts: Ensure initialization of outfiles variable
The outfiles variable was never initialized and could potentially hold
values from an outer scope.
Change-Id: I1ff1b4e62553884ca82658106fbdaacbfa99bb2b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit b7134c8249c3bf5877debd90294240ec34eb2936)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/scxml/Qt6ScxmlMacros.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scxml/Qt6ScxmlMacros.cmake b/src/scxml/Qt6ScxmlMacros.cmake index d846dfc..066bade 100644 --- a/src/scxml/Qt6ScxmlMacros.cmake +++ b/src/scxml/Qt6ScxmlMacros.cmake @@ -41,6 +41,7 @@ function(qt6_add_statecharts target_or_outfiles) _qt_internal_wrap_tool_command(qscxmlc_command SET "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::qscxmlc>") + set(outfiles) foreach(it ${scxml_files}) get_filename_component(outfilename ${it} NAME_WE) get_filename_component(infile ${it} ABSOLUTE) |