diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-09-29 13:06:12 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-10-15 13:00:04 +0200 |
| commit | 5430fb22439db9fc1ad1df4cbf0319b63346b0a5 (patch) | |
| tree | 4c25135c0fb476dbb36bb2601d094d42b3e4b638 /tests/auto/sql/kernel/qsqldatabase/tst_databases.h | |
| parent | 5ca714318c4b0c02f3b9ef98c5fc1c948c35219e (diff) | |
CMake: Set RPATH of deployed plugins on Linux
When deploying into some directory structure where CMAKE_INSTALL_LIBDIR
is different from Qt's lib dir, we need to set the RPATH of installed
plugins such that Qt libraries are found.
We do this using CMake's undocumented file(RPATH_SET) command and pray
that this command is safe to use across current and future CMake
versions. For CMake versions < 3.21, we use patchelf, which must be
installed on the host system.
The adjustment of rpaths can be turned on explicitly by setting
QT_DEPLOY_FORCE_ADJUST_RPATHS to ON.
The usage of patchelf can be forced by setting QT_DEPLOY_USE_PATCHELF to
ON regardless of the CMake version.
Change-Id: I62ced496b4c12bf6d46735d2af7ff35130148acb
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_databases.h')
0 files changed, 0 insertions, 0 deletions
