AddDependencies: new policy requires dependencies to exist

Added new policy CMP0046 which requires dependencies added by
add_dependencies() to actually exist.
Merge topic 'missing-dependency-error' into next

0bf6f13b AddDependencies: new policy requires dependencies to exist