1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Use "cmake --version" instead of "which cmake" to detect CMake.

This commit is contained in:
Peter Powell
2016-05-21 17:54:33 +01:00
parent 8b6e17fe7e
commit 7592a6981b
+1 -1
View File
@@ -166,7 +166,7 @@ done
# Check for CMake and (optionally) install it
###########################################################################
which cmake > /dev/null
cmake --version 2>&1 > /dev/null
if [ $? -ne 0 ] ; then
clear
echo "Anope requires CMake 2.4 or newer, which can be downloaded at http://cmake.org or through your system's package manager."