mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
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
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user