summaryrefslogtreecommitdiff
path: root/Modules/CMakeCXXCompilerId.cpp.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-09 10:21:28 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-09 10:21:28 -0400
commit12a7e2b10c447e3ed61c2bca69f0264f7fcbdef9 (patch)
treea54d4aee5c315f35281bd124fe9927da2cd50499 /Modules/CMakeCXXCompilerId.cpp.in
parent7f268c243f49775bb6de867ee49f3b48117c68ea (diff)
parent1763c31c3b964343b88f8f26dc2941dd8c0e1fbe (diff)
downloadcmake-12a7e2b10c447e3ed61c2bca69f0264f7fcbdef9.tar.gz
Merge topic 'apple-clang-id'
1763c31 Set policy CMP0025 to NEW while building CMake itself aa53ee5 Add policy CMP0025 for Apple Clang compiler id compatibility ab65862 Clang: Add separate "AppleClang" compiler id
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r--Modules/CMakeCXXCompilerId.cpp.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in
index 915ae7faa8..3a60922424 100644
--- a/Modules/CMakeCXXCompilerId.cpp.in
+++ b/Modules/CMakeCXXCompilerId.cpp.in
@@ -34,7 +34,12 @@
# endif
#elif defined(__clang__)
-# define COMPILER_ID "Clang"
+# if defined(__apple_build_version__)
+# define COMPILER_ID "AppleClang"
+# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
+# else
+# define COMPILER_ID "Clang"
+# endif
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)