1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

bootstrap: test -a|o is not POSIX

This commit is contained in:
Issam E. Maghni
2020-12-23 13:27:33 -05:00
parent 95c59252c4
commit d9a788b356

View File

@@ -944,11 +944,10 @@ while test $# != 0; do
done
# Make sure the generator is valid
if test "${cmake_bootstrap_generator}" != "MSYS Makefiles" -a \
"${cmake_bootstrap_generator}" != "Unix Makefiles" -a \
"${cmake_bootstrap_generator}" != "Ninja"; then
cmake_error 10 "Invalid generator: ${cmake_bootstrap_generator}"
fi
case "${cmake_bootstrap_generator}" in
'MSYS Makefiles'|'Unix Makefiles'|'Ninja') ;;
*) cmake_error 10 "Invalid generator: ${cmake_bootstrap_generator}"
esac
# If verbose, display some information about bootstrap
if test -n "${cmake_verbose}"; then