diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-04-13 18:52:56 +0200 |
|---|---|---|
| committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-04-22 14:34:47 +0200 |
| commit | 8a56b4ad9bcbafefd8de0caf102c300b7771e57b (patch) | |
| tree | 2a3cefc05ba2f0439e087da87938e0be33205c09 /src/testlib/doc/snippets/code | |
| parent | 251033fb0addb9799f2b308b2fa4f7589e9886ac (diff) | |
CMake: Embed an empty qt_prfxpath if Qt is relocatable
When Qt is configured as relocatable,
QT_CONFIGURE_PREFIX_PATH_STR -> qt_configure_prefix_path_str ->
qt_prfxpath
is not used in relevant code paths.
Specifically qlibraryinfo.cpp getPrefix() uses getRelocatablePrefix()
instead of QT_CONFIGURE_PREFIX_PATH.
Thus, when Qt is configured as relocatable, set qt_prfxpath to an
empty string.
This avoids embedding a CI path like /home/qt/work/install into the
official packages, which makes reproducible builds a closer reality.
Change-Id: I9209b08e651ad0b7fdc4049df333e0978e05f1f5
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
