Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Add Apple Clang instructions to README
  • Loading branch information
Petua41 committed Dec 23, 2024
1 parent 0a9b7ec commit bd1c055
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd1c055

Please sign in to comment.