qt5base-lts/tests/auto/network
Alexandru Croitor c51fe841f4 Fix handling of _nolink targets for the QtNetwork module
When a _nolink target is exported, instead of getting the original
namespace prefix, it gets the Qt6 prefix
(OpenSSL::OpenSSL_nolink -> Qt6::OpenSSL_nolink).

There is some special case code in Network autotests which tries
to access the former target name, which doesn't exist when building
standalone tests.

Make sure to create a Qt6:: library alias for _nolink targets during a
build (so before the library is exported), and change the Network
autotests project to use this Qt6:: namespaced library, which will
ensure it is found both in a standalone tests build and in a regular
Qt build.

Also make sure to actually call find_package to find the OpenSSL
library when building standalone tests, otherwise configuration will
fail.

Change-Id: I3da5b958e72e745a50380f8ab1644459a7c6b005
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-11-08 15:09:54 +00:00
..
access Regenerate files after dev -> wip/cmake merge 2019-10-14 19:01:19 +00:00
bearer Regenerate tests that use helper processes 2019-08-23 09:25:27 +00:00
kernel Merge remote-tracking branch 'origin/wip/qt6' into wip/cmake 2019-10-11 16:23:19 +02:00
socket Regenerate files after dev -> wip/cmake merge 2019-10-14 19:01:19 +00:00
ssl Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-10-14 17:46:34 +02:00
CMakeLists.txt Fix handling of _nolink targets for the QtNetwork module 2019-11-08 15:09:54 +00:00
network.pro Re-enable network tests on Mac OS. 2012-04-24 16:06:28 +02:00