Skip to content

Commit efbc358

Browse files
committed
fix: remove vcpkg toolchain from Qt build, use -qt-zlib
The vcpkg toolchain file (vcpkg.cmake) automatically injects ALL installed vcpkg packages into CMake's search path, including OpenSSL. This is why -no-openssl and empty OPENSSL_DIR vars had no effect - vcpkg kept providing OpenSSL regardless. Fix: Remove the vcpkg toolchain from Qt's configure entirely. Use -qt-zlib (Qt bundled zlib) instead of -system-zlib so Qt does not need vcpkg at all. Without the vcpkg toolchain, Qt's CMake cannot find OpenSSL, ensuring only libtorrent links it.
1 parent 59eb5b3 commit efbc358

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/ci_windows_arm64_native.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ jobs:
130130
-static -static-runtime -release -xplatform win32-arm64-msvc `
131131
-prefix "${{ env.qt_target_root }}" `
132132
-qt-host-path "C:/Qt/${{ env.qt_version }}/msvc2022_64" `
133-
-system-zlib -schannel -no-openssl -qt-sqlite -sql-sqlite -no-sql-mysql -no-sql-odbc -no-sql-psql -c++std c++20 -- `
134-
-DCMAKE_TOOLCHAIN_FILE="$vcpkgRoot/scripts/buildsystems/vcpkg.cmake" `
135-
-DVCPKG_TARGET_TRIPLET=${{ env.vcpkg_triplet }}
133+
-qt-zlib -schannel -no-openssl -qt-sqlite -sql-sqlite -no-sql-mysql -no-sql-odbc -no-sql-psql -c++std c++20
136134
137135
cmake --build .
138136
cmake --install .

0 commit comments

Comments
 (0)