Skip to content

Commit 59eb5b3

Browse files
committed
fix: remove CMAKE_PREFIX_PATH from Qt build to hide OpenSSL
The -no-openssl and empty OPENSSL_DIR vars didn't prevent Qt from finding the vcpkg OpenSSL library because CMAKE_PREFIX_PATH included the entire vcpkg installed folder. Remove CMAKE_PREFIX_PATH entirely during Qt configure. The -system-zlib flag will find zlib through the vcpkg toolchain, and Qt won't have any path to find OpenSSL at all. This ensures ONLY libtorrent links OpenSSL, eliminating duplicate symbols.
1 parent 677e41a commit 59eb5b3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

.github/workflows/ci_windows_arm64_native.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ jobs:
131131
-prefix "${{ env.qt_target_root }}" `
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 -- `
134-
-DCMAKE_PREFIX_PATH="$vcpkgRoot/installed/${{ env.vcpkg_triplet }}" `
135-
-DOPENSSL_DIR="" `
136-
-DOPENSSL_CRYPTO_LIBRARY="" `
137-
-DOPENSSL_SSL_LIBRARY="" `
138134
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot/scripts/buildsystems/vcpkg.cmake" `
139135
-DVCPKG_TARGET_TRIPLET=${{ env.vcpkg_triplet }}
140136

0 commit comments

Comments
 (0)