summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2016-07-03 13:46:41 -0400
committerGitHub <noreply@github.com>2016-07-03 13:46:41 -0400
commit3b2366e4ba8456c9bffcd0a227ad2efb838ef7f7 (patch)
treec7a065c394e9edd2ca758156c1f0f98a4ffd5c51
parent257a8a9a24db3a0985ce3039c67d753f66ca57d9 (diff)
parent7592a6981b9b1e7906d1ddb9808d55c45d6461ae (diff)
Merge pull request #169 from SaberUK/2.0+which
Use "cmake --version" instead of "which cmake" to detect CMake.
-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."