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 /Tests/RunCMake/CMP0046/CMP0046-NEW-missing-dependency.cmake | |
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 'Tests/RunCMake/CMP0046/CMP0046-NEW-missing-dependency.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0046/CMP0046-NEW-missing-dependency.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0046/CMP0046-NEW-missing-dependency.cmake b/Tests/RunCMake/CMP0046/CMP0046-NEW-missing-dependency.cmake new file mode 100644 index 0000000000..9bb6b90c8e --- /dev/null +++ b/Tests/RunCMake/CMP0046/CMP0046-NEW-missing-dependency.cmake @@ -0,0 +1,4 @@ +cmake_policy(SET CMP0046 NEW) + +add_custom_target(foo) +add_dependencies(foo bar) |