Skip to content

Commit 5c7821c

Browse files
committed
fix cmake versions mismatch
1 parent 41df780 commit 5c7821c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/install_deps.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ brew install gnu-sed
1010
brew install automake
1111
brew install libtool
1212

13-
rm -f /usr/local/bin/cmake
13+
brew uninstall --ignore-dependencies cmake 2>/dev/null || true
14+
rm -rf /Applications/CMake.app
15+
rm -f /usr/local/bin/cmake /usr/local/bin/ctest /usr/local/bin/cpack /usr/local/bin/cmake-gui /usr/local/bin/ccmake
16+
1417
CMAKE_VERSION=3.31.6
1518
mkdir ~/Downloads/CMake
1619
curl --location --retry 3 "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-macos-universal.dmg" --output ~/Downloads/CMake/cmake-macos.dmg

0 commit comments

Comments
 (0)