diff options
author | Volker Krause <vkrause@kde.org> | 2020-06-01 16:19:21 +0200 |
---|---|---|
committer | Aleix Pol Gonzalez <aleixpol@kde.org> | 2020-06-22 00:00:28 +0000 |
commit | 13a1161d445cbd31f2e83cfc31564a387c3d7f5f (patch) | |
tree | b9337e2813c19c552868ab7650dbe60150592f63 /docs | |
parent | 8f26aba22be46099e0bb443ab27de4eb8c4d8a06 (diff) | |
download | extra-cmake-modules-13a1161d445cbd31f2e83cfc31564a387c3d7f5f.tar.gz extra-cmake-modules-13a1161d445cbd31f2e83cfc31564a387c3d7f5f.tar.bz2 |
Deal with Qt's CMake code modifying CMAKE_SHARED_LIBRARY_SUFFIX
Qt adds the Android ABI to the suffix there unconditionally, without also
adjusting CMAKE_FIND_LIBRARY_SUFFIXES accordingly, breaking find_library()
for things built that way. Unfortunately we can't just set this in our
toolchain file, as CMAKE_FIND_LIBRARY_SUFFIXES is overwritten by CMake
after evaluating the toolchain file. So we need to use the variable_watch
hack for this here, thanks to Aleix for the idea.
With this, find_library() works for both suffixed and un-suffixed libraries
again, such as Poppler built with or without Qt support.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions