From 07c5716374fde9fc26b65fc6408cbb812da5c5f7 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 15 Dec 2018 22:32:19 +0500 Subject: [PATCH] configure: allow to specify CPACK_GENERATOR explicitly --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 9e16fb09..50af363c 100755 --- a/configure +++ b/configure @@ -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