【前言】
在单片机开发中,Cmake在编译上有非常重的作用。在安装好brew后,我使用brew install cmake完成了安装,虽然命令简单,但是在后面的使用中,有可能需要用到他所安装的路径等。因此在这里记录一下,方便以后的使用。
【安装】
输入命令:brew install cmake
liujianhua@liujianhuadeMac-mini ~ % brew install cmake ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/formula.jws.jso #=#=# ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/cask.jws.json #=#=# Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag. To silence this message, use the `--formula` flag. ==> Fetching cmake ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/cmake-3.31.3.arm64_ ######################################################################### 100.0% ==> Pouring cmake-3.31.3.arm64_sequoia.bottle.tar.gz ==> Caveats To install the CMake documentation, run: brew install cmake-docs Emacs Lisp files have been installed to: /opt/homebrew/share/emacs/site-lisp/cmake ==> Summary