Выбор типа сборки по умолчанию

This commit is contained in:
Andrei Astafev 2019-03-13 20:11:48 +03:00
parent 120458b69c
commit 5b2635867d

View File

@ -181,8 +181,13 @@ export -f generate_configuration
if [ "x$SINGLE_TYPE" != "xn" ]; then
BUILD_TYPES=("${SINGLE_TYPE}")
else
[ "x$QTCREATOR" == "xy" ] && BUILD_TYPES=("${QTCREATOR_BUILD_TYPES[@]}")
[ "x$CMAKE" == "xy" ] && BUILD_TYPES=("${CMAKE_BUILD_TYPES[@]}")
if [ "x$QTCREATOR" == "xy" ]; then
BUILD_TYPES=("${QTCREATOR_BUILD_TYPES[@]}")
elif [ "x$CMAKE" == "xy" ]; then
BUILD_TYPES=("${CMAKE_BUILD_TYPES[@]}")
else
BUILD_TYPES=("Release")
fi
fi
if [ ${#BUILD_TYPES[@]} -eq 0 ]; then