diff options
-rw-r--r-- | tools/svgtoqml/Qt6SvgToQmlMacros.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/svgtoqml/Qt6SvgToQmlMacros.cmake b/tools/svgtoqml/Qt6SvgToQmlMacros.cmake index a981428671..fa60f91692 100644 --- a/tools/svgtoqml/Qt6SvgToQmlMacros.cmake +++ b/tools/svgtoqml/Qt6SvgToQmlMacros.cmake @@ -61,9 +61,13 @@ function(qt6_target_qml_from_svg target) list(APPEND svgtoqml_args "${file_absolute}") list(APPEND svgtoqml_args "${svgtoqml_result}") + _qt_internal_get_tool_wrapper_script_path(tool_wrapper) add_custom_command( OUTPUT "${svgtoqml_result}" - COMMAND ${QT_CMAKE_EXPORT_NAMESPACE}::svgtoqml ${svgtoqml_args} + COMMAND + ${tool_wrapper} + $<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::svgtoqml> + ${svgtoqml_args} DEPENDS "${file_absolute}" ${QT_CMAKE_EXPORT_NAMESPACE}::svgtoqml |