diff --git a/cmake.sh b/cmake.sh index a82fed4..452584b 100755 --- a/cmake.sh +++ b/cmake.sh @@ -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