Skip to content

Commit a6b2b77

Browse files
[8.2] Handle Homebrew conflicts: Install cmake only if not present (#760)
Handle Homebrew conflicts: Install cmake only if not present (#754) * try with macos14 * uninstall cmake if exists * uninstallcmake * try with condiiton (cherry picked from commit d60ab7c) Co-authored-by: meiravgri <109056284+meiravgri@users.noreply.github.com>
1 parent 7488bbb commit a6b2b77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.install/install_cmake.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ MODE=$1 # whether to install using sudo or not
66

77
if [[ $OS_TYPE = 'Darwin' ]]
88
then
9-
brew install cmake
9+
if ! command -v cmake &> /dev/null; then
10+
brew install cmake
11+
else
12+
echo "cmake already installed"
13+
fi
1014
else
1115
if [[ $processor = 'x86_64' ]]
1216
then

0 commit comments

Comments
 (0)