diff options
author | Brad King <brad.king@kitware.com> | 2008-03-13 20:35:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-13 20:35:39 (GMT) |
commit | bf4cef9d5cb67728e855cd65bafa2a3cde684cfe (patch) | |
tree | 22eacf13e8480a8d9a3fda5c15216b324878243e /Source/cmTarget.cxx | |
parent | d46ff28ac9465969f9fda862d06a048fa40d72f6 (diff) | |
download | CMake-bf4cef9d5cb67728e855cd65bafa2a3cde684cfe.zip CMake-bf4cef9d5cb67728e855cd65bafa2a3cde684cfe.tar.gz CMake-bf4cef9d5cb67728e855cd65bafa2a3cde684cfe.tar.bz2 |
ENH: Add policy CMP_0004 to require library names to have no leading or trailing whitespace. Replace previous check of CMAKE_BACKWARDS_COMPATIBILITY against version 2.4 with the policy.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 5811285..2f695da 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -54,6 +54,7 @@ cmTarget::cmTarget() { this->Makefile = 0; this->PolicyStatusCMP0003 = cmPolicies::WARN; + this->PolicyStatusCMP0004 = cmPolicies::WARN; this->LinkLibrariesAnalyzed = false; this->HaveInstallRule = false; this->DLLPlatform = false; @@ -731,6 +732,8 @@ void cmTarget::SetMakefile(cmMakefile* mf) // Record current policies for later use. this->PolicyStatusCMP0003 = this->Makefile->GetPolicyStatus(cmPolicies::CMP0003); + this->PolicyStatusCMP0004 = + this->Makefile->GetPolicyStatus(cmPolicies::CMP0004); } //---------------------------------------------------------------------------- |