summaryrefslogtreecommitdiff
path: root/Config
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-05-21 17:54:33 +0100
committerPeter Powell <petpow@saberuk.com>2016-05-21 17:54:33 +0100
commit7592a6981b9b1e7906d1ddb9808d55c45d6461ae (patch)
treec3ee6cf09eb55cb630081aafe0b74c52f60c1660 /Config
parent8b6e17fe7e706ce87e700a4962d450d9cdeac85f (diff)
Use "cmake --version" instead of "which cmake" to detect CMake.
Diffstat (limited to 'Config')
-rwxr-xr-xConfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/Config b/Config
index 896aa4025..13d345e57 100755
--- a/Config
+++ b/Config
@@ -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."