Using Brew I first uninstalled current cmake installation with: brew remove cmake
and then I installed using: brew install --cask cmake
This worked for me