diff --git a/tests/auto/network/ssl/CMakeLists.txt b/tests/auto/network/ssl/CMakeLists.txt index 6d4dc15cc8..0b267dd29c 100644 --- a/tests/auto/network/ssl/CMakeLists.txt +++ b/tests/auto/network/ssl/CMakeLists.txt @@ -5,7 +5,9 @@ add_subdirectory(qsslcertificate) add_subdirectory(qsslcipher) add_subdirectory(qsslellipticcurve) add_subdirectory(qsslerror) -add_subdirectory(qsslkey) +if(QT_FEATURE_ssl) + add_subdirectory(qsslkey) +endif() if(QT_FEATURE_private_tests AND QT_FEATURE_ssl) add_subdirectory(qsslsocket) add_subdirectory(qsslsocket_onDemandCertificates_member) diff --git a/tests/auto/network/ssl/ssl.pro b/tests/auto/network/ssl/ssl.pro index 014ff34064..3477a6c90e 100644 --- a/tests/auto/network/ssl/ssl.pro +++ b/tests/auto/network/ssl/ssl.pro @@ -6,10 +6,10 @@ SUBDIRS=\ qsslcertificate \ qsslcipher \ qsslellipticcurve \ - qsslerror \ - qsslkey \ + qsslerror qtConfig(ssl) { + SUBDIRS += qsslkey qtConfig(private_tests) { SUBDIRS += \ qsslsocket \