From 0959c75d16a37fbbdfa4fcf14311b773079319a9 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Tue, 18 Feb 2020 13:51:27 +0100 Subject: [PATCH] Apply the same fix from test/auto/network to network benchmarks Change-Id: I81d41aa526d5c06adef637e756a3d81e799443e4 Reviewed-by: Alexandru Croitor --- tests/benchmarks/network/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/benchmarks/network/CMakeLists.txt b/tests/benchmarks/network/CMakeLists.txt index 8b1a7ac1ff7..4175518f343 100644 --- a/tests/benchmarks/network/CMakeLists.txt +++ b/tests/benchmarks/network/CMakeLists.txt @@ -1,5 +1,20 @@ # Generated from network.pro. +# special case begin +# SSL library include path is not propagated with private tests which results in +# test not being able to find the ssl header when they are not in the standard +# include paths +if (QT_FEATURE_private_tests) + if (QT_FEATURE_openssl AND QT_FEATURE_openssl_linked AND QT_FEATURE_ssl) + include_directories($) + endif() + + if (QT_FEATURE_openssl AND QT_FEATURE_ssl AND NOT QT_FEATURE_openssl_linked) + include_directories($) + endif() +endif() +# special case end + add_subdirectory(access) add_subdirectory(kernel) add_subdirectory(socket)