diff options
author | Li Xinwei <1326710505@qq.com> | 2021-01-22 19:13:19 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-29 08:05:33 +0000 |
commit | 6e7628821dc4cb3b4f1a6356bbe839e94c58a81f (patch) | |
tree | ec17ac925d5127c7d5605cc9e04c4b114e06d92b /tests/auto/gui | |
parent | 443ce5d073f8cd32469fd74e705ca9465013ebcb (diff) |
CMake: Fix HAVE_openssl config test when using static OpenSSL
When using static OpenSSL, HAVE_openssl test will fail, because of
unresolved external symbols. These symbols are from Ws2_32.lib and
Crypt32.lib, which CMake does not link by default. In qmake build
system, we can use OPENSSL_LIBS variable to specify these system
libraries. But there is no similar variable in CMake build system.
Accordingly, we should let OpenSSL::Crypto target link these libraries.
Upstream issue:
https://gitlab.kitware.com/cmake/cmake/-/issues/19263
Change-Id: I5f27790b251d0a0f71aaf2aed2b933aeb3326f1f
Reviewed-by: Craig Scott <craig.scott@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 29a58af4caea921e641c27477e6a255274de27ea)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/gui')
0 files changed, 0 insertions, 0 deletions