aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-11-25 18:01:16 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-11-30 11:49:09 +0000
commit7b1ac206d931a6ff62226a3d81e13f1a796ec7fd (patch)
treed9cc6a7702fa96e8282a4e64b0416127077f3b9c /src/qml
parent8dbc318b80c02ae4695234bb4df9f3655c6ee02e (diff)
CMake: Fix resource object file paths in qml plugin prl files
Pass the new INSTALL_LOCATION argument to qt_internal_record_rcc_object_files to ensure correct paths to resource object files in plugin prl files. Amends 8a54a6fc2efd13f0310ec71793f624cdf28bd1c9 Task-number: QTBUG-87702 Task-number: QTBUG-88425 Change-Id: I539c29fd9745b8ed2ad063ac2a82e086efc22ef0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit ce35f02b338fc74e72cd25cfad111dff9f6459f4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/Qt6QmlMacros.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index b6091160db..f942238572 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -403,7 +403,8 @@ function(qt6_add_qml_module target)
# When building a static Qt, we need to record information about the compiled resource
# object files to embed them into .prl files.
if(COMMAND qt_internal_record_rcc_object_files)
- qt_internal_record_rcc_object_files("${target}" "${resource_targets}")
+ qt_internal_record_rcc_object_files(
+ "${target}" "${resource_targets}" INSTALL_LOCATION "${arg_INSTALL_LOCATION}")
endif()
endif()
else()
@@ -606,7 +607,8 @@ function(qt6_target_qml_files target)
# When building a static Qt, we need to record information about the compiled resource
# object files to embed them into .prl files.
if(COMMAND qt_internal_record_rcc_object_files)
- qt_internal_record_rcc_object_files("${target}" "${resource_targets}")
+ qt_internal_record_rcc_object_files(
+ "${target}" "${resource_targets}" INSTALL_LOCATION "${qml_module_install_dir}")
endif()
endif()