diff options
author | Brad King <brad.king@kitware.com> | 2017-05-11 13:55:08 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-11 13:55:12 (GMT) |
commit | 9b79d2a35730a51e3cb022f3c68e01944405dce0 (patch) | |
tree | 76191d69933c7f2f7d258619c8c916ca930af5e7 /Source | |
parent | 99b1ff714b45d34ad84a5d897b4fce30a9ec3041 (diff) | |
parent | 469813cce049e18357ab274316aac0cdb4ca6688 (diff) | |
download | CMake-9b79d2a35730a51e3cb022f3c68e01944405dce0.zip CMake-9b79d2a35730a51e3cb022f3c68e01944405dce0.tar.gz CMake-9b79d2a35730a51e3cb022f3c68e01944405dce0.tar.bz2 |
Merge topic 'CMP0069-no-warn-try_compile'
469813cc CMP0069: Suppress warning if we are in 'try_compile'
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !823
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 3f50e32..073bde2 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -489,7 +489,9 @@ bool cmGeneratorTarget::IsIPOEnabled(const std::string& config) const // problem is already reported, no need to issue a message return false; } - if (cmp0069 == cmPolicies::WARN) { + const bool in_try_compile = + this->LocalGenerator->GetCMakeInstance()->GetIsInTryCompile(); + if (cmp0069 == cmPolicies::WARN && !in_try_compile) { std::ostringstream w; w << cmPolicies::GetPolicyWarning(cmPolicies::CMP0069) << "\n"; w << "INTERPROCEDURAL_OPTIMIZATION property will be ignored for target " |