diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2014-03-28 20:38:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-31 13:45:10 (GMT) |
commit | 77b581c2f004a36b2b62cc7c678abf51f92c76b5 (patch) | |
tree | 38d8a72a1d631f6a9b5cd30ab9ab14a256e7826a /Source/cmTarget.cxx | |
parent | a48de7d8506325e7f27c9dada578744e1ff3fb35 (diff) | |
download | CMake-77b581c2f004a36b2b62cc7c678abf51f92c76b5.zip CMake-77b581c2f004a36b2b62cc7c678abf51f92c76b5.tar.gz CMake-77b581c2f004a36b2b62cc7c678abf51f92c76b5.tar.bz2 |
Policies: omit warnings about unset policies when they are actually set to NEW
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 0c89656..e2a568b 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2636,11 +2636,14 @@ bool cmTarget::HandleLocationPropertyPolicy() const { return true; } + cmOStringStream e; const char *modal = 0; cmake::MessageType messageType = cmake::AUTHOR_WARNING; switch (this->Makefile->GetPolicyStatus(cmPolicies::CMP0026)) { case cmPolicies::WARN: + e << (this->Makefile->GetPolicies() + ->GetPolicyWarning(cmPolicies::CMP0026)) << "\n"; modal = "should"; case cmPolicies::OLD: break; @@ -2653,9 +2656,6 @@ bool cmTarget::HandleLocationPropertyPolicy() const if (modal) { - cmOStringStream e; - e << (this->Makefile->GetPolicies() - ->GetPolicyWarning(cmPolicies::CMP0026)) << "\n"; e << "The LOCATION property " << modal << " not be read from target \"" << this->GetName() << "\". Use the target name directly with " "add_custom_command, or use the generator expression $<TARGET_FILE>, " |