summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-18 15:15:15 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-02 21:12:56 (GMT)
commit5702e10677e72a75370e8c1bbe6f10fa5ad675a9 (patch)
tree0820653eda131344091b81e756120cf881ccf047 /Source/cmPolicies.cxx
parent857d30b52ef2fb011bad16249d34972fadae9b70 (diff)
downloadCMake-5702e10677e72a75370e8c1bbe6f10fa5ad675a9.zip
CMake-5702e10677e72a75370e8c1bbe6f10fa5ad675a9.tar.gz
CMake-5702e10677e72a75370e8c1bbe6f10fa5ad675a9.tar.bz2
cmTarget: Include TARGET_OBJECTS genex in target SOURCES property.
Add policy CMP0051 to control this behavior.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 2bd553f..759df91 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -343,6 +343,11 @@ cmPolicies::cmPolicies()
CMP0050, "CMP0050",
"Disallow add_custom_command SOURCE signatures.",
3,0,0, cmPolicies::WARN);
+
+ this->DefinePolicy(
+ CMP0051, "CMP0051",
+ "List TARGET_OBJECTS in SOURCES target property.",
+ 3,1,0, cmPolicies::WARN);
}
cmPolicies::~cmPolicies()