diff --git a/cmake.sh b/cmake.sh index 9a8b40b..c350015 100755 --- a/cmake.sh +++ b/cmake.sh @@ -153,7 +153,11 @@ generate_configuration() { fi GEN_DIR="${BUILD_DIR}" - [ "x${SINGLE_TYPE}" == "xn" ] && GEN_DIR="${BUILD_DIR}/${BUILD}" + if [ "x${SINGLE_TYPE}" == "xn" ]; then + GEN_DIR="${BUILD_DIR}/${BUILD}" + else + GEN_DIR="${BUILD_DIR}/${SINGLE_TYPE}" + fi [ -d "${GEN_DIR}" ] && return 0 mkdir -p "${GEN_DIR}" pushd "${GEN_DIR}" 2>/dev/null