Commit 526bc5a
committed
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=build1 parent 86c10c1 commit 526bc5a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments