Thursday 3 May 2018

CMake 3.10.1 bootstrap fails on Mac OS X 10.8.5 with "Cannot find a C++ compiler supporting C++11 on this system."

my error was exactly the same as this https://gitlab.kitware.com/cmake/cmake/issues/17639

solution,
edit cmake.rb
(somewhere in usr/local/Homebrew/Library/taps/homebrew/homebrew-core/Formula)

add
ENV["CXXFLAGS"] = "-std=c++11 -stdlib=libc+

before the execution of bootstrap.


No comments:

Post a Comment