qt_find_package() sets QT_TARGETS_OF_QMAKE_LIB_<NAME> to all provided targets, without checking if each target exists. qt_generate_qmake_libraries_pri_content() iterates targets listed in QT_TARGETS_OF_QMAKE_LIB_<NAME>. If a target does not exist, qt_generate_qmake_libraries_pri_content() trusts it as a library name and adds it into QMAKE_LIB_<NAME>_<CONFIG> directly. 3073b9c4dec5e5877363794bf81cbd4b84fdb9ee adds zstd::libzstd_shared to the PROVIDED_TARGETS argument of qt_find_package(). When WrapZSTD::WrapZSTD is found but zstd::libzstd_shared doesn't exist, QMAKE_LIBS_ZSTD now contains wrong content "libzstd::libzstd_shared". Pick-to: 6.7 Change-Id: Id2a79d6c028a80e53d7b9a6a6d11f436d40dde65 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 56853235458799bbf993fa7f2fa19ecf9bbdae9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%