push
github
cmake: fix AppleClang detection CMake 3.0 and above recognize that Apple Clang is a different compiler than upstream Clang. CMake 4.0 prefers to set the `CMAKE_<LANG>_COMPILER_ID` variable to AppleClang instead of Clang. See [1] for details. This patch adds the corresponding check to set `CMAKE_COMPILER_IS_CLANG` for the Apple Clang too. [1]: https://cmake.org/cmake/help/v4.0/policy/CMP0025.html NO_DOC=build NO_TEST=build NO_CHANGELOG=build (cherry picked from commit 526bc5a12)
70438 of 124137 branches covered (56.74%)
103568 of 118366 relevant lines covered (87.5%)
2770803.79 hits per line