summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-02-18 13:51:27 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-02-20 16:11:01 +0100
commit0959c75d16a37fbbdfa4fcf14311b773079319a9 (patch)
tree8ff38de617b486d79aee76ab6e4c752f3a77305f /tests
parentf03a51a404b0ef1fe54458937468d365bfed7ca4 (diff)
Apply the same fix from test/auto/network to network benchmarks
Change-Id: I81d41aa526d5c06adef637e756a3d81e799443e4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/network/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/benchmarks/network/CMakeLists.txt b/tests/benchmarks/network/CMakeLists.txt
index 8b1a7ac1ff..4175518f34 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($<TARGET_PROPERTY:OpenSSL::SSL,INTERFACE_INCLUDE_DIRECTORIES>)
+ endif()
+
+ if (QT_FEATURE_openssl AND QT_FEATURE_ssl AND NOT QT_FEATURE_openssl_linked)
+ include_directories($<TARGET_PROPERTY:${INSTALL_CMAKE_NAMESPACE}::SSL_nolink,INTERFACE_INCLUDE_DIRECTORIES>)
+ endif()
+endif()
+# special case end
+
add_subdirectory(access)
add_subdirectory(kernel)
add_subdirectory(socket)