summaryrefslogtreecommitdiffstats
path: root/cmake/FindLibsystemd.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-26 19:45:28 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-06-29 12:23:05 +0200
commit63f09a94dba58515129d6c75254a15ccb2af1027 (patch)
tree8f711c961ba9714e8d57920c12364694b29328d8 /cmake/FindLibsystemd.cmake
parent2ed63e587eefb246dba9e69aa01fdb2abb2def13 (diff)
CMake: Transform absolute library paths into link flags in .pri files
Before this change, the qt_lib_foo_private .pri files contained absolute paths to libraries, e.g. /usr/lib/x86_64-linux-gnu/libcups.so Whereas the qmake build instead embeds link flags like -lcups. Detect absolute library file paths, and transform them into link flags. This should make the .pri files relocatable. Fix the add_custom_commands to have the scripts as dependencies. Make sure to pass the suffix, prefix and other options to the qconfig.pri generation command as well. Also reverse the order of the link flags, to mirror the order that qmake generates for .pri files. Task-number: QTBUG-84781 Task-number: QTBUG-85240 Change-Id: I7bc3b234d9c86c785b169b11f3042450aa225c1f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/FindLibsystemd.cmake')
0 files changed, 0 insertions, 0 deletions