configure: respect environment CMAKE_FLAGS

This commit is contained in:
Koichiro IWAO committed 2020-03-20 20:59:29 +09:00
1 parent c222ef525b
commit a6652fead2
1 file changed
+5 -1
Vendored
+5 -1
View File
@@ -21,8 +21,12 @@ if [ ! -d "tmp" ]; then
mkdir tmp
fi
if [ ! -z ${CMAKE_FLAGS+x} ]; then
CMAKE_FLAGS="${CMAKE_FLAGS}"
fi
if [ ! -z ${CMAKE_INSTALL_PREFIX+x} ]; then
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} ${CMAKE_FLAGS}"
fi
if [ -z ${OPENSSL_ROOT_DIR} ]; then