diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2014-01-12 12:58:04 +0100 |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-01-12 12:58:04 +0100 |
commit | 0bf6f13b1dc278b68c1ddf94d838014852ada679 (patch) | |
tree | 3464265a00fc0ad27c36d5b3bf0c9c81ff8f49c5 /Source/cmPolicies.cxx | |
parent | cb7af7af44bd9ce5ac11e345b1756ea0770bbc83 (diff) | |
download | cmake-0bf6f13b1dc278b68c1ddf94d838014852ada679.tar.gz |
AddDependencies: new policy requires dependencies to exist
Added new policy CMP0046 which requires dependencies added by
add_dependencies() to actually exist.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r-- | Source/cmPolicies.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index 5a189f8c18..020a782a12 100644 --- a/Source/cmPolicies.cxx +++ b/Source/cmPolicies.cxx @@ -331,6 +331,11 @@ cmPolicies::cmPolicies() CMP0045, "CMP0045", "Error on non-existent target in get_target_property.", 3,0,0,0, cmPolicies::WARN); + + this->DefinePolicy( + CMP0046, "CMP0046", + "Error on non-existent dependency in add_dependencies.", + 3,0,0,0, cmPolicies::WARN); } cmPolicies::~cmPolicies() |