diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-29 11:36:22 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-29 12:16:10 +0200 |
commit | e70fe083f3eb6a3bc63937e147a2997bb908f67a (patch) | |
tree | f582ddaa97d69faa6a05dcf6510e5c8056edb0b5 /src/qml/Qt6QmlMacros.cmake | |
parent | a7c7e7ceaa47b915748f6701c5b558771682d532 (diff) |
cmake: Quote the arguments to CMD's 'set' command
This avoids issues with some special characters and spaces.
Change-Id: I79e95e75a4c1f0bf554811ebd3d2636912a3858c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r-- | src/qml/Qt6QmlMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake index fba43be215..be163fde59 100644 --- a/src/qml/Qt6QmlMacros.cmake +++ b/src/qml/Qt6QmlMacros.cmake @@ -578,7 +578,7 @@ function(qt6_qml_type_registration target) if (WIN32) # TODO: FIXME: The env path is wrong when not building Qt, but a standalone example. file(TO_NATIVE_PATH "${${PROJECT_NAME}_BINARY_DIR}/bin$<SEMICOLON>${CMAKE_INSTALL_PREFIX}/${INSTALL_BINDIR}$<SEMICOLON>%PATH%" env_path_native) - set(extra_env_command COMMAND set PATH=${env_path_native}) + set(extra_env_command COMMAND set \"PATH=${env_path_native}\") endif() add_custom_command(OUTPUT ${type_registration_cpp_file} DEPENDS |