On a Mac, I had Visual Studio Code and the CMake Tools extension working comfortably together, and building. Then I did
brew --upgrade
allowing it to update all those outdated formulas that it likes to talk about.
Oops! Now my CMake build is broken.
[build] Starting build
[proc] Executing command: /opt/homebrew/bin/cmake --build /Users/ken/vsc/catch/build --config Debug --target all -j 12 --
[build] gmake: /opt/homebrew/Cellar/cmake/3.29.3/bin/cmake: No such file or directory
But I type
% cmake --version
cmake version 3.29.4
Something is remembering an outdated version (3.29.3) of CMake, and not finding it. Where do I go to update this?
I tried
% cmake --fresh -S .
Which ran correctly but didn’t fix anything.
Log of the upgrade:
==> Upgrading cmake
3.29.3 -> 3.29.4
==> Pouring cmake--3.29.4.arm64_sonoma.bottle.tar.gz
==> Caveats
To install the CMake documentation, run:
brew install cmake-docs
Bash completion has been installed to:
/opt/homebrew/etc/bash_completion.d
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/cmake
==> Summary
???? /opt/homebrew/Cellar/cmake/3.29.4: 3,385 files, 55.5MB
==> Running `brew cleanup cmake`...
Removing: /opt/homebrew/Cellar/cmake/3.29.3... (3,385 files, 55.5MB)
Removing: /Users/ken/Library/Caches/Homebrew/cmake_bottle_manifest--3.29.3... (12.3KB)
Removing: /Users/ken/Library/Caches/Homebrew/cmake--3.29.3... (16.6MB)