CMake: Fix execution of svgtoqml tool
It fails in a no-prefix per-repo build of qtdeclarative standalone
examples build, with the following error:
ninja: error:
'examples/quick/quickshapes/weatherforecast/Qt6::svgtoqml', needed by
'examples/quick/quickshapes/weatherforecast/.qt/svgtoqml/Europe_generated.qml',
missing and no known rule to make it
Wrap the command in a <TARGET_FILE> genex, and prepend the tool
wrapper shell script for Windows hosts.
Amends 018b10ff71
Change-Id: Ib4aa91f3680cad40ac462a48b09a4acf795ff7ae
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
8721ff9e83
commit
106329a2ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue