summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-02 18:54:17 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-02 18:54:17 (GMT)
commit97243c22b29f453c6403f514f73e6b8dec127194 (patch)
tree3d89f18df42396d53e97f3b0d51bf5690fa6d1f8 /Source/cmGlobalGenerator.cxx
parentf180fc89255bdd72e5d1b49ba7e7cc8dcb77c72e (diff)
parenta41c0a9dcbc201b183bcc0a0c0f6bf9f2cebd079 (diff)
downloadCMake-97243c22b29f453c6403f514f73e6b8dec127194.zip
CMake-97243c22b29f453c6403f514f73e6b8dec127194.tar.gz
CMake-97243c22b29f453c6403f514f73e6b8dec127194.tar.bz2
Merge branch 'revise-compiler-id-policies' into release
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 4f3328d..beb10da 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -759,7 +759,8 @@ void cmGlobalGenerator::CheckCompilerIdCompatibility(cmMakefile* mf,
switch(mf->GetPolicyStatus(cmPolicies::CMP0025))
{
case cmPolicies::WARN:
- if(!this->CMakeInstance->GetIsInTryCompile())
+ if(!this->CMakeInstance->GetIsInTryCompile() &&
+ mf->PolicyOptionalWarningEnabled("CMAKE_POLICY_WARNING_CMP0025"))
{
cmOStringStream w;
w << policies->GetPolicyWarning(cmPolicies::CMP0025) << "\n"
@@ -790,7 +791,8 @@ void cmGlobalGenerator::CheckCompilerIdCompatibility(cmMakefile* mf,
switch(mf->GetPolicyStatus(cmPolicies::CMP0047))
{
case cmPolicies::WARN:
- if(!this->CMakeInstance->GetIsInTryCompile())
+ if(!this->CMakeInstance->GetIsInTryCompile() &&
+ mf->PolicyOptionalWarningEnabled("CMAKE_POLICY_WARNING_CMP0047"))
{
cmOStringStream w;
w << policies->GetPolicyWarning(cmPolicies::CMP0047) << "\n"