CMake: fix option completion after first argument

for some reason this just ended after the first option.
This commit is contained in:
Norbert Lange 2020-12-25 21:57:24 +01:00
parent 2e009c7ab8
commit 63b470243b
1 changed files with 4 additions and 3 deletions

View File

@ -565,11 +565,12 @@ elif [ $CURRENT -eq 2 ] ; then
"$cmake_suggest_install[@]" && return 0
elif [[ $words[2] = --help* ]] ; then
_cmake_help
#elif [[ $words[2] != -E ]] ; then
elif [[ $words[2] == --build ]] ; then
_cmake_on_build
elif [[ $words[2] == --install ]] ; then
_cmake_on_install
else
elif [[ $words[2] == -E ]]; then
_cmake_command
fi
else
_arguments "$cmake_build_options[@]"
fi