diff --git a/README.md b/README.md index 2adf26140..c4ba400e9 100644 --- a/README.md +++ b/README.md @@ -303,7 +303,26 @@ Second command installs the latest version of LLVM (which includes Clang). For o The last 5 lines set Clang as CMake compiler in your terminal session and set directory where Boost libraries are located. You can also add them to the end of `~/.profile` to set this by default in all sessions. -#### MacOS dependencies installation +#### macOS dependencies installation + +##### Apple Clang +Install Xcode Command Line Tools if you don't have them. Run: +```sh +xcode-select --install +``` +Follow the prompts to continue. + +To install CMake and Boost on macOS we recommend to use [Homebrew](https://brew.sh/) package manager. With Homebrew +installed, run the following commands: +```sh +brew install cmake boost +``` +After installation, check `cmake --version`. If command is not found, then you need to add to environment path to +homebrew installed packages. To do this open `~/.zprofile` (for Zsh) or +`~/.bash_profile` (for Bash) and add to the end of the file the output of `brew shellenv`. +After that, restart the terminal and check the version of CMake again, now it should be displayed. + +Apple Clang is default compiler on macOS, so there's no need in setting environmental variables. ##### GCC Install Xcode Command Line Tools if you don't have them. Run: