# Issue between CMake, MPI, macOS (XCode 16?) and gcc

**URL:** https://discourse.cmake.org/t/issue-between-cmake-mpi-macos-xcode-16-and-gcc/11711
**Category:** Code
**Created:** [September 17, 2024, 4:38pm UTC](https://discourse.cmake.org/t/issue-between-cmake-mpi-macos-xcode-16-and-gcc/11711 "2024-09-17T16:38:01Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [September 17, 2024, 7:22pm UTC](https://discourse.cmake.org/t/issue-between-cmake-mpi-macos-xcode-16-and-gcc/11711/9 "2024-09-17T19:22:48Z")

</div>

Try workaround like

```sh
SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/ cmake -Bbuild

cmake --build build

```

that worked on the trivial project above. It seems that the current Homebrew GCC 14.2 doesn’t want the new 15.0 SDK that CMake grabs by default.

---

_[View the full topic](https://discourse.cmake.org/t/issue-between-cmake-mpi-macos-xcode-16-and-gcc/11711)._
