summaryrefslogtreecommitdiff
path: root/Config
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-05-21 17:54:33 +0100
committerAdam <Adam@anope.org>2016-10-02 14:00:22 -0400
commitf3a0a4801dc3b767ddf13dd9137bbf9a1f1d8bc4 (patch)
treec13d34263d66b1f95999531b5aa8cdeab9af5bf0 /Config
parent04ab5f59663fe1e1ceb409d342e7a0f8c1d91728 (diff)
Use "cmake --version" instead of "which cmake" to detect CMake.
(cherry picked from commit 7592a6981b9b1e7906d1ddb9808d55c45d6461ae)
Diffstat (limited to 'Config')
-rwxr-xr-xConfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/Config b/Config
index 58a79ce65..f1cd4e317 100755
--- a/Config
+++ b/Config
@@ -152,7 +152,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."