Skip to content

Commit

Permalink
update macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Mar 12, 2024
1 parent 507832f commit 8e1a484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if [ ! -d "./external/rpclib/rpclib-${RPCLIB_VERSION}" ]; then
fi

# Check for local cmake build created by setup.sh.
if [ -d "./cmake_build" ]; then
if [ -d './cmake_build' ]; then
if [ "$(uname)" = 'Darwin' ]; then
CMAKE="$(greadlink -f cmake_build/bin/cmake)"
else
Expand All @@ -108,7 +108,6 @@ if [ -d "./cmake_build" ]; then
else
CMAKE="$(which cmake)"
fi

CMAKE_C_COMPILER="$CMAKE"
CMAKE_CXX_COMPILER="$CMAKE"

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if [ "$(uname)" = 'Darwin' ]; then
brew update
# Conditionally install lower CMake version.
if ( version_less_than_equal_to "$cmake_ver" "$CMAKE_VERSION_MIN" ); then
brew install cmake
brew install "cmake@${CMAKE_VERSION}"
else
echo "Compatible version of CMake already installed: $cmake_ver"
fi
Expand Down

0 comments on commit 8e1a484

Please sign in to comment.