Change which test for cmake28 to use command -v.

This commit is contained in:
Markus Blatt
2013-09-05 12:49:57 +02:00
committed by Bård Skaflestad
parent 3db8443c8c
commit efc7fab49c

View File

@@ -145,7 +145,7 @@ VARS=()
# command that launches cmake; look for 2.8 if available
if [ "${CMAKE_COMMAND}" = "" ]; then
if which cmake28 >/dev/null 2>&1; then
if test -n "$(command -v cmake28)"; then
CMAKE_COMMAND=cmake28
else
CMAKE_COMMAND=cmake