Can not build cmake 3.10 or newer on MacOSX with XCode 8.0 and -mmacosx-version-min=10.11
I build cmake on MacOSX with CFLAGS
set to -march=core2 -mmacosx-version-min=10.11
. This worked well up until 3.9.x, but starts to fail with 3.10 and newer. The error message is when cmake bootstraps itself:
The C++ compiler does not support C++11
As far as I can see this should be wrong, because XCode 8.0
ships AppleClang 8.0.0
that is based on clang 3.9
, and clang has full c++11
support since around version 3.3
.
Am I doing something wrong? Is this a cmake issue, or is maybe the flag -mmacosx-version-min=10.11
causing trouble? The build seems to work when I first build cmake 3.9
and then use that to bootstrap cmake 3.11
.
I could find a related commit fd4fd9a2 in case that helps?