Change which test for cmake28 to use command -v.

This commit is contained in:
Markus Blatt authored and Bård Skaflestad committed 2013-09-24 15:39:39 +02:00
1 parent 3db8443c8c
commit efc7fab49c
1 file changed
+1 -1
+1 -1
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