Skip to content

Commit 6d08ea5

Browse files
committed
add option to ignore system CMake
1 parent a203baf commit 6d08ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.evergreen/find-cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ find_cmake ()
1111
CMAKE="/Applications/Cmake.app/Contents/bin/cmake"
1212
elif [ -f "/opt/cmake/bin/cmake" ]; then
1313
CMAKE="/opt/cmake/bin/cmake"
14-
elif command -v cmake 2>/dev/null; then
14+
elif [ -z "$IGNORE_SYSTEM_CMAKE" ] && command -v cmake 2>/dev/null; then
1515
CMAKE=cmake
1616
elif uname -a | grep -iq 'x86_64 GNU/Linux'; then
1717
if [ -f "$(pwd)/cmake-3.11.0/bin/cmake" ]; then

0 commit comments

Comments
 (0)