diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-11-03 19:24:58 +0100 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-11-07 19:33:37 +0100 |
commit | 0b0118ef28f4482a87cf9901667e6934ab49670c (patch) | |
tree | 898d88c3b48c596e23f2229f78b1ba7236f33369 /src/network | |
parent | 2db41fefa006c9aabd577eee98b8a9594d264470 (diff) |
CMake Build: Fix CMake configure with -DFEATURE_schannel=ON
When -DFEATURE_schannel=ON, -DFEATURE_ssl=ON, and -DFEATURE_openssl=OFF
cmake configuration would fail.
Fixes: QTBUG-88126
Change-Id: I7325a6c6bc4b9ff448893c7f05b7f46c34eefc1e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/configure.cmake | 7 | ||||
-rw-r--r-- | src/network/configure.json | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/network/configure.cmake b/src/network/configure.cmake index 6f3dac9faa..d66874b462 100644 --- a/src/network/configure.cmake +++ b/src/network/configure.cmake @@ -280,13 +280,14 @@ qt_feature_definition("openssl-linked" "QT_LINKED_OPENSSL") qt_feature("securetransport" PUBLIC LABEL "SecureTransport" CONDITION APPLE AND ( INPUT_openssl STREQUAL '' OR INPUT_openssl STREQUAL 'no' ) - DISABLE INPUT_securetransport STREQUAL 'no' OR INPUT_ssl STREQUAL 'no' + DISABLE INPUT_ssl STREQUAL 'no' ) qt_feature_definition("securetransport" "QT_SECURETRANSPORT") qt_feature("schannel" PUBLIC LABEL "Schannel" - CONDITION INPUT_schannel STREQUAL 'yes' AND WIN32 AND ( INPUT_openssl STREQUAL '' OR INPUT_openssl STREQUAL 'no' ) - DISABLE INPUT_schannel STREQUAL 'no' OR INPUT_ssl STREQUAL 'no' + AUTODETECT OFF + CONDITION WIN32 AND ( INPUT_openssl STREQUAL '' OR INPUT_openssl STREQUAL 'no' ) + DISABLE INPUT_ssl STREQUAL 'no' ) qt_feature_definition("schannel" "QT_SCHANNEL") qt_feature("ssl" PUBLIC diff --git a/src/network/configure.json b/src/network/configure.json index 9a09d3f2e1..835e449e5d 100644 --- a/src/network/configure.json +++ b/src/network/configure.json @@ -304,7 +304,7 @@ }, "securetransport": { "label": "SecureTransport", - "disable": "input.securetransport == 'no' || input.ssl == 'no'", + "disable": "input.ssl == 'no'", "condition": "config.darwin && (input.openssl == '' || input.openssl == 'no')", "output": [ "publicFeature", @@ -313,8 +313,9 @@ }, "schannel": { "label": "Schannel", - "disable": "input.schannel == 'no' || input.ssl == 'no'", - "condition": "input.schannel == 'yes' && config.win32 && (input.openssl == '' || input.openssl == 'no')", + "autoDetect": false, + "disable": "input.ssl == 'no'", + "condition": "config.win32 && (input.openssl == '' || input.openssl == 'no')", "output": [ "publicFeature", { "type": "define", "name": "QT_SCHANNEL" } |