summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2022-03-15 17:37:11 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2022-03-17 15:15:06 +0100
commit8adacba3e6970d784108645d5c0a70e5b9c1151e (patch)
tree40055c9e057c1f4b24fb37f05cbed542f8365b64 /tests/auto/tools/moc
parent74bef86da8b63996ca6947d81e82b667ac1eb0b2 (diff)
Add VERBATIM option to add_custom_command calls
Use VERBATIM option to prepare the correct command line for the add_custom_command. This especially sensitive when using build directories with names containing special symbols, that cannot be handled by shell correctly. Change-Id: I51d7041cb806411135fd59bf6273c04a3c695443 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/tools/moc')
-rw-r--r--tests/auto/tools/moc/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/CMakeLists.txt b/tests/auto/tools/moc/CMakeLists.txt
index 177615f25c..30dddffa71 100644
--- a/tests/auto/tools/moc/CMakeLists.txt
+++ b/tests/auto/tools/moc/CMakeLists.txt
@@ -142,6 +142,7 @@ add_custom_command(TARGET tst_moc
-o "allmocs.json"
--collect-json "@${moc_json_out}"
COMMENT "Running moc with --collect-json"
+ VERBATIM
)
# Add dependencies that are implicitly used inside the test