summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/scxmlcoutput/path/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/scxmlcoutput/path/CMakeLists.txt b/tests/auto/scxmlcoutput/path/CMakeLists.txt
index ba49f43..cb7f548 100644
--- a/tests/auto/scxmlcoutput/path/CMakeLists.txt
+++ b/tests/auto/scxmlcoutput/path/CMakeLists.txt
@@ -5,8 +5,13 @@ qt_internal_add_test(tst_scxmlcoutput_path
Qt::Scxml
)
-# This testcase tests providing the namespace
+# This testcase tests setting the output path
+set(outputPath "${CMAKE_CURRENT_BINARY_DIR}/thechosenpath")
+# Create the path first relative to the build directory, otherwise the
+# code generation's output might fail on some platforms.
+file(MAKE_DIRECTORY "${outputPath}")
+
qt6_add_statecharts(tst_scxmlcoutput_path
../shared/ids1.scxml
- OUTPUT_DIR thechosenpath
+ OUTPUT_DIR "${outputPath}"
)