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.

This commit is contained in:
Brad King
2008-03-13 16:35:39 -04:00
parent d46ff28ac9
commit bf4cef9d5c
6 changed files with 67 additions and 10 deletions

View File

@@ -110,6 +110,10 @@ public:
cmPolicies::PolicyStatus GetPolicyStatusCMP0003() const
{ return this->PolicyStatusCMP0003; }
/** Get the status of policy CMP0004 when the target was created. */
cmPolicies::PolicyStatus GetPolicyStatusCMP0004() const
{ return this->PolicyStatusCMP0004; }
/**
* Get the list of the custom commands for this target
*/
@@ -537,6 +541,7 @@ private:
// Policy status recorded when target was created.
cmPolicies::PolicyStatus PolicyStatusCMP0003;
cmPolicies::PolicyStatus PolicyStatusCMP0004;
// Internal representation details.
friend class cmTargetInternals;