Use --bare option in CMake-generated calls to QML tools
We pass the system import path(s) explicitly. We don't want the tools to
guess them.
Task-number: QTBUG-106365
Change-Id: I529d5e79fa0331e6994be0d8a659d4a4556be1dd
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit fecd60e62d
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7cd4f54890
commit
e95b1f585e
|
@ -802,6 +802,7 @@ function(_qt_internal_target_enable_qmllint target)
|
|||
set(cmd
|
||||
${QT_TOOL_COMMAND_WRAPPER_PATH}
|
||||
${QT_CMAKE_EXPORT_NAMESPACE}::qmllint
|
||||
--bare
|
||||
${import_args}
|
||||
${qrc_args}
|
||||
${qmllint_files}
|
||||
|
@ -1382,6 +1383,7 @@ function(_qt_internal_target_enable_qmltc target)
|
|||
COMMAND
|
||||
${QT_TOOL_COMMAND_WRAPPER_PATH}
|
||||
${qmltc_executable}
|
||||
--bare
|
||||
--header "${compiled_header}"
|
||||
--impl "${compiled_cpp}"
|
||||
${common_args}
|
||||
|
@ -2150,6 +2152,7 @@ function(qt6_target_qml_sources target)
|
|||
COMMAND
|
||||
${QT_TOOL_COMMAND_WRAPPER_PATH}
|
||||
${qmlcachegen_cmd}
|
||||
--bare
|
||||
--resource-path "${file_resource_path}"
|
||||
${cachegen_args}
|
||||
-o "${compiled_file}"
|
||||
|
|
Loading…
Reference in New Issue