Skip to content

Commit 5eab84f

Browse files
committed
fix: add build-from-source flag for brew install cmake
1 parent c8dd3b0 commit 5eab84f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ci/kokoro/macos/builds/cmake-vcpkg.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ brew --version
3434
io::log_h2 "DEBUG: Brew doctor before update"
3535
# brew doctor
3636

37-
# Install bash and ninja
38-
io::log_h2 "DEBUG: Before brew install bash ninja"
39-
brew install bash ninja
40-
io::log_h2 "DEBUG: After brew install bash ninja"
41-
4237
# Install v3.28.1 CMake
4338
io::log_h2 "DEBUG: Before brew install for cmake"
44-
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4c210b9063c89a89abd9a6db5bae1b5f4e8fdb7d/Formula/c/cmake.rb
39+
brew install --build-from-source https://raw.githubusercontent.com/Homebrew/homebrew-core/4c210b9063c89a89abd9a6db5bae1b5f4e8fdb7d/Formula/c/cmake.rb
4540
io::log_h2 "DEBUG: After brew install for cmake"
4641

4742
io::log_h2 "Using CMake version"
4843
cmake --version
4944

45+
# Install bash and ninja
46+
io::log_h2 "DEBUG: Before brew install bash ninja"
47+
brew install bash ninja
48+
io::log_h2 "DEBUG: After brew install bash ninja"
49+
5050
# Fetch vcpkg at the specified hash, download to the tmpfs directory when
5151
# running on Kokoro.
5252
if [[ -z "${KOKORO_ARTIFACTS_DIR:-}" ]]; then

0 commit comments

Comments
 (0)