Skip to content

Instantly share code, notes, and snippets.

@jeregrine
Created June 14, 2016 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeregrine/65bb0238b38d8a2dfa3a5b75c0c9d14e to your computer and use it in GitHub Desktop.
Save jeregrine/65bb0238b38d8a2dfa3a5b75c0c9d14e to your computer and use it in GitHub Desktop.
$ brew install cmake
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Downloading https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
Already downloaded: /Users/jasonstiebs/Library/Caches/Homebrew/cmake-3.5.2.tar.gz
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.5.2 --no-system-libs --parallel=4 --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man --sys
Last 15 lines from /Users/jasonstiebs/Library/Logs/Homebrew/cmake/01.bootstrap:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
Please set CMAKE_OSX_DEPLOYMENT_TARGET to 10.11 or lower.
Call Stack (most recent call first):
Modules/CMakeSystemSpecificInformation.cmake:36 (include)
CMakeLists.txt:19 (project)
-- Configuring incomplete, errors occurred!
See also "/tmp/cmake-20160614-28742-1f64jnv/cmake-3.5.2/CMakeFiles/CMakeOutput.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
@felipeplets
Copy link

I'm facing this same issue. Any luck in finding a solution?

@LouisStAmour
Copy link

LouisStAmour commented Aug 5, 2016

Same with cmake-3.6.1. Found that brew install cmake --HEAD took forever to download the large cmake repo, and... still the same.

Finally woke up and read the error message. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk means it's trying to use the 10.11 SDK to compile a binary for 10.12 which is not a winning strategy.

Use Xcode-select and pick a different install of Xcode. Presumably this'll do the trick. Note you need Xcode 8 or higher: https://developer.apple.com/library/prerelease/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/introduction.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment