summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-03-26 17:08:29 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-21 18:59:17 (GMT)
commiteabefa8b02b399b00aea83185b6b364ab5b6aa3d (patch)
treed704dd000578415ab3be7b88248488d4d06caf73 /Source/cmTarget.h
parent272431a84ff13eb17cf04389428f57c7fe13e3a2 (diff)
downloadCMake-eabefa8b02b399b00aea83185b6b364ab5b6aa3d.zip
CMake-eabefa8b02b399b00aea83185b6b364ab5b6aa3d.tar.gz
CMake-eabefa8b02b399b00aea83185b6b364ab5b6aa3d.tar.bz2
Error on relative path in INCLUDE_DIRECTORIES target property.
Add policy CMP0021 to preserve existing behavior in projects expecting it from earlier CMake versions.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 9d46796..daf9540 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -106,6 +106,10 @@ public:
cmPolicies::PolicyStatus GetPolicyStatusCMP0020() const
{ return this->PolicyStatusCMP0020; }
+ /** Get the status of policy CMP0021 when the target was created. */
+ cmPolicies::PolicyStatus GetPolicyStatusCMP0021() const
+ { return this->PolicyStatusCMP0021; }
+
/**
* Get the list of the custom commands for this target
*/
@@ -664,6 +668,7 @@ private:
cmPolicies::PolicyStatus PolicyStatusCMP0004;
cmPolicies::PolicyStatus PolicyStatusCMP0008;
cmPolicies::PolicyStatus PolicyStatusCMP0020;
+ cmPolicies::PolicyStatus PolicyStatusCMP0021;
// Internal representation details.
friend class cmTargetInternals;