1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

cmake: limit CPack generator to TGZ

To avoid building NSIS packages, which seems not super useful,
and breaks without NSIS (as seen in CI).

Do what curl does and restrict CPack to TGZ.

Follow-up to 04ecdb22fe #1972

Closes #1996
This commit is contained in:
Viktor Szakats
2026-06-07 23:47:35 +02:00
parent 4a3b0b23d2
commit c528dfdf42
2 changed files with 1 additions and 3 deletions

View File

@@ -979,9 +979,6 @@ jobs:
else
system='Windows'
fi
if [[ "${MATRIX_IMAGE}" = *'windows-2025'* ]]; then
options+=' -DCPACK_GENERATOR=TGZ'
fi
[ "${MATRIX_CRYPTO}" = 'WinCNG' ] && options+=" -DENABLE_ECDSA_WINCNG=${MATRIX_WINCND_ECDSA}"
cmake -B bld ${options} \
-DCMAKE_SYSTEM_NAME="${system}" \

View File

@@ -584,4 +584,5 @@ set(CPACK_PACKAGE_VERSION_MAJOR ${LIBSSH2_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${LIBSSH2_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${LIBSSH2_VERSION_PATCH})
set(CPACK_PACKAGE_VERSION ${LIBSSH2_VERSION})
set(CPACK_GENERATOR "TGZ")
include(CPack)