Not sure if I have too much to add. A couple of notes:
-
CMakeError.txt is expected to contain many errors. Its just a collection of the failed commands that ran during the detection (and the expectation is that there will be failures, its just trying different things to learn about the environment)
-
There is one piece of detail that I think hasn't been discussed yet:
-- Found assembler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
Why is it falling back to cc? I would expect that to be clang not cc (cc is the traditional Unix name for the C compiler). This is yanked from a random CI run, but this is what I would expect:
-- The C compiler identification is AppleClang 12.0.0.12000022
-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- works
I'm left wondering if CMake is correctly identifying the compiler or not. That is probably the first thread that I would chase, trying to figure out why its not picking up clang/clang++.