1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 17:49:52 +03:00

configure: allow to specify CPACK_GENERATOR explicitly

This commit is contained in:
Ilya Shipitsin 2018-12-15 22:32:19 +05:00
parent aa3a797edb
commit 07c5716374

5
configure vendored
View File

@ -35,7 +35,10 @@ if [ -z ${OPENSSL_ROOT_DIR} ]; then
fi
fi
if [ -x "$(command -v rpm)" ]; then
if [ ! -z ${CPACK_GENERATOR+x} ]; then
echo "CPACK_GENERATOR is set, CPack will generate ${CPACK_GENERATOR} packages."
CMAKE_FLAGS="-DCPACK_GENERATOR=${CPACK_GENERATOR} ${CMAKE_FLAGS}"
elif [ -x "$(command -v rpm)" ]; then
echo "'rpm' executable found, CPack will generate RPM packages."
CMAKE_FLAGS="-DCPACK_GENERATOR='RPM' ${CMAKE_FLAGS}"
else