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:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -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}" \
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user