Disable the 'openssl-hash' feature by default

Since the feature breaks Qt build in some configurations, disable it
by default and make private, so users should enable it explicitly and
make sure that openssl libraries are accessible for linking at build
time by either PATH or LD_LIBRARY_PATH.

Fixes: QTBUG-114783
Pick-to: 6.6
Change-Id: I6eb53c43ed937ec1c0164025bc8953cc5170dc44
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2023-08-09 11:04:18 +02:00
parent 1b5e13c8d9
commit d55c5e2a43

View File

@ -917,8 +917,9 @@ qt_feature("permissions" PUBLIC
LABEL "Application permissions"
PURPOSE "Provides support for requesting user permission to access restricted data or APIs"
)
qt_feature("openssl-hash" PUBLIC
qt_feature("openssl-hash" PRIVATE
LABEL "OpenSSL based cryptographic hash"
AUTODETECT OFF
CONDITION QT_FEATURE_openssl_linked AND QT_FEATURE_opensslv30
PURPOSE "Uses OpenSSL based implementation of cryptographic hash algorithms."
)