summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-07-01 11:38:44 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2022-07-06 14:56:25 +0200
commit2961ac00e77ff782e195d98cf873b41eca7f96a3 (patch)
treea5b6ff3dd425b1d2569505d9b2dc3a587261b84c
parentb7134c8249c3bf5877debd90294240ec34eb2936 (diff)
qt6_add_statecharts: Deduplicate code
Change-Id: I27162e28cc61dd771425ba6a226ade6e65ad5e99 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/scxml/Qt6ScxmlMacros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scxml/Qt6ScxmlMacros.cmake b/src/scxml/Qt6ScxmlMacros.cmake
index 066bade..caca1b6 100644
--- a/src/scxml/Qt6ScxmlMacros.cmake
+++ b/src/scxml/Qt6ScxmlMacros.cmake
@@ -46,8 +46,8 @@ function(qt6_add_statecharts target_or_outfiles)
get_filename_component(outfilename ${it} NAME_WE)
get_filename_component(infile ${it} ABSOLUTE)
set(outfile ${qscxmlcOutputDir}/${outfilename})
- set(outfile_cpp ${qscxmlcOutputDir}/${outfilename}.cpp)
- set(outfile_h ${qscxmlcOutputDir}/${outfilename}.h)
+ set(outfile_cpp ${outfile}.cpp)
+ set(outfile_h ${outfile}.h)
add_custom_command(OUTPUT ${outfile_cpp} ${outfile_h}
${qscxmlc_command} ${namespace} ${ARGS_OPTIONS}