mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
configure: detect "rpm" instead of "rpmbuild"
This commit is contained in:
parent
1062d600b4
commit
a5c63a8ed7
6
configure
vendored
6
configure
vendored
@ -35,11 +35,11 @@ if [ -z ${OPENSSL_ROOT_DIR} ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "$(command -v rpmbuild)" ]; then
|
if [ -x "$(command -v rpm)" ]; then
|
||||||
echo "'rpmbuild' executable found, CPack will generate RPM packages."
|
echo "'rpm' executable found, CPack will generate RPM packages."
|
||||||
CMAKE_FLAGS="-DCPACK_GENERATOR='RPM' ${CMAKE_FLAGS}"
|
CMAKE_FLAGS="-DCPACK_GENERATOR='RPM' ${CMAKE_FLAGS}"
|
||||||
else
|
else
|
||||||
echo "'rpmbuild' executable not found, CPack will generate DEB packages."
|
echo "'rpm' executable not found, CPack will generate DEB packages."
|
||||||
CMAKE_FLAGS="-DCPACK_GENERATOR='DEB' ${CMAKE_FLAGS}"
|
CMAKE_FLAGS="-DCPACK_GENERATOR='DEB' ${CMAKE_FLAGS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user