I need to use the old version for cmake but I can't find the formula in homebrew, is that a way to install cmake 3.12 using Homebrew?
EDITED: the solution presented here is much more objective considering the answers from the previous question.
# install cmake 3.12.4
curl -O https://github.com/Homebrew/homebrew-core/raw/a3b64391ebace30b84de8e7997665a1621c0b2c0/Formula/cmake.rb
brew install ./cmake.rb
You could install it from specific formula file.
cmake.rb
file.brew install path-to-cmake.rb
.Update 1: Homebrew 3.6.0 removed the function to install with URL of a formula. We need to download the formula file first.