aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2022-03-15 18:04:59 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2022-03-31 20:09:57 +0200
commit396d8b0d1759281f8de406e0c4b0b23a8999449c (patch)
tree4416ade255c7953713462aea20981a05246a17da /cmake
parent11fda065817e3face3296b311694694eb0c46d97 (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: Ic6ea2a557fe4e7ccc1d2a0c5c4ab707223c0b91a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtDeclarativeSetup.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtDeclarativeSetup.cmake b/cmake/QtDeclarativeSetup.cmake
index 3513fdad0b..fd718c2d62 100644
--- a/cmake/QtDeclarativeSetup.cmake
+++ b/cmake/QtDeclarativeSetup.cmake
@@ -63,6 +63,7 @@ function(qt_declarative_generate_reg_exp_jit_tables consuming_target)
OUTPUT "${output_file}"
COMMAND "${QT_INTERNAL_DECLARATIVE_PYTHON}" ${retgen_script_file} ${output_file}
MAIN_DEPENDENCY ${retgen_script_file}
+ VERBATIM
)
target_sources(${consuming_target} PRIVATE ${output_file})
target_include_directories(${consuming_target} PRIVATE $<BUILD_INTERFACE:${generate_dir}>)