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

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 if [ "x$SINGLE_TYPE" != "xn" ]; then
BUILD_TYPES=("${SINGLE_TYPE}") BUILD_TYPES=("${SINGLE_TYPE}")
else else
[ "x$QTCREATOR" == "xy" ] && BUILD_TYPES=("${QTCREATOR_BUILD_TYPES[@]}") if [ "x$QTCREATOR" == "xy" ]; then
[ "x$CMAKE" == "xy" ] && BUILD_TYPES=("${CMAKE_BUILD_TYPES[@]}") BUILD_TYPES=("${QTCREATOR_BUILD_TYPES[@]}")
elif [ "x$CMAKE" == "xy" ]; then
BUILD_TYPES=("${CMAKE_BUILD_TYPES[@]}")
else
BUILD_TYPES=("Release")
fi
fi fi
if [ ${#BUILD_TYPES[@]} -eq 0 ]; then if [ ${#BUILD_TYPES[@]} -eq 0 ]; then