diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-12-21 09:57:03 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2023-01-06 18:28:31 +0100 |
commit | b6fd3191c1c0fa1697c90b0457e3f9523bbad11d (patch) | |
tree | 2628aebc84c22f212e04da575b46be00bedebc0d /src/qml/compiler/qv4compilerscanfunctions.cpp | |
parent | 3df8eba0f5e9f9b0142914d53c1183c5a05030e7 (diff) | |
download | qtdeclarative-b6fd3191c1c0fa1697c90b0457e3f9523bbad11d.tar.gz |
CMake: Avoid repeating DESTDIR when deploying QML plugins
Let CMAKE_INSTALL_PREFIX be "/usr/local", and consider a project with a
call to qt_generate_deploy_app_script.
Installing the project with DESTDIR set to "/tmp/bla" would install the
project targets to "/tmp/bla/usr/local" but Qt's QML modules to
"/tmp/bla/tmp/bla/usr/local".
That happened, because we used QT_DEPLOY_PREFIX as DESTINATION in
file(INSTALL). QT_DEPLOY_PREFIX starts with $ENV{DESTDIR} and
file(INSTALL) also prepends DESTDIR.
The value of QT_DEPLOY_PREFIX is controlled by CMAKE_INSTALL_PREFIX. Use
the latter as DESTINATION in file(INSTALL) calls.
Pick-to: 6.5
Task-number: QTBUG-109553
Change-Id: I8f06d81968fa0de4f17c4f8bc9b17cc052da4c12
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
0 files changed, 0 insertions, 0 deletions