Skip to content

Commit 677e41a

Browse files
committed
fix: explicitly prevent Qt from finding OpenSSL via empty OPENSSL_DIR
The -no-openssl flag alone didn't prevent Qt's CMake from finding and linking the vcpkg OpenSSL library. Add OPENSSL_DIR, OPENSSL_CRYPTO_LIBRARY, and OPENSSL_SSL_LIBRARY CMake variables set to empty strings to tell CMake not to look for OpenSSL at all during Qt build. This ensures Qt's network module uses only schannel (Windows native TLS), and libtorrent is the ONLY source of OpenSSL in the final binary, eliminating duplicate symbols that cause stack overflow in tls_parse_all_extensions.
1 parent 0992b79 commit 677e41a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci_windows_arm64_native.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ jobs:
132132
-qt-host-path "C:/Qt/${{ env.qt_version }}/msvc2022_64" `
133133
-system-zlib -schannel -no-openssl -qt-sqlite -sql-sqlite -no-sql-mysql -no-sql-odbc -no-sql-psql -c++std c++20 -- `
134134
-DCMAKE_PREFIX_PATH="$vcpkgRoot/installed/${{ env.vcpkg_triplet }}" `
135+
-DOPENSSL_DIR="" `
136+
-DOPENSSL_CRYPTO_LIBRARY="" `
137+
-DOPENSSL_SSL_LIBRARY="" `
135138
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot/scripts/buildsystems/vcpkg.cmake" `
136139
-DVCPKG_TARGET_TRIPLET=${{ env.vcpkg_triplet }}
137140

0 commit comments

Comments
 (0)