diff options
author | Brad King <brad.king@kitware.com> | 2013-10-09 14:21:28 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-10-09 14:21:28 (GMT) |
commit | 12a7e2b10c447e3ed61c2bca69f0264f7fcbdef9 (patch) | |
tree | a54d4aee5c315f35281bd124fe9927da2cd50499 /Source/cmPolicies.cxx | |
parent | 7f268c243f49775bb6de867ee49f3b48117c68ea (diff) | |
parent | 1763c31c3b964343b88f8f26dc2941dd8c0e1fbe (diff) | |
download | CMake-12a7e2b10c447e3ed61c2bca69f0264f7fcbdef9.zip CMake-12a7e2b10c447e3ed61c2bca69f0264f7fcbdef9.tar.gz CMake-12a7e2b10c447e3ed61c2bca69f0264f7fcbdef9.tar.bz2 |
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 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index 9e5e6e0..1d3469f 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -620,6 +620,23 @@ cmPolicies::cmPolicies() "The NEW behavior for this policy is to not to allow including the " "result of an export() command.", 2,8,13,0, cmPolicies::WARN); + + this->DefinePolicy( + CMP0025, "CMP0025", + "Compiler id for Apple Clang is now AppleClang.", + "CMake >= 2.8.13 recognize that Apple Clang is a different compiler " + "than upstream Clang and that they have different version numbers. " + "CMake now prefers to present this to projects by setting " + "CMAKE_<LANG>_COMPILER_ID to \"AppleClang\" instead of \"Clang\". " + "However, existing projects may assume the compiler id for Apple Clang " + "is just \"Clang\" as it was in CMake < 2.8.13. " + "Therefore this policy determines for Apple Clang which compiler id " + "to report in CMAKE_<LANG>_COMPILER_ID after <LANG> is enabled by " + "the project() or enable_language() command." + "\n" + "The OLD behavior for this policy is to use compiler id \"Clang\". " + "The NEW behavior for this policy is to use compiler id \"AppleClang\".", + 2,8,13,0, cmPolicies::WARN); } cmPolicies::~cmPolicies() |