diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx
index ab77c6b..fb5022f 100644
--- a/Source/cmComputeTargetDepends.cxx
+++ b/Source/cmComputeTargetDepends.cxx
@@ -248,6 +248,40 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index,
   cmTarget* dependee =
     depender->GetMakefile()->FindTargetToUse(dependee_name);
 
+  if (!dependee && !linking &&
+      (depender->GetType() != cmTarget::GLOBAL_TARGET))
+    {
+    cmOStringStream e;
+    switch (depender->GetMakefile()->GetPolicyStatus(cmPolicies::CMP0019))
+      {
+      case cmPolicies::WARN:    // Print the warning message only.
+        e << "\n"
+          << "CMake does not support this but it used to work accidentally "
+          << "and is being allowed for compatibility."
+          << "\n" << depender->GetMakefile()->GetPolicies()->
+            GetPolicyWarning(cmPolicies::CMP0019)
+          << "\n";
+        e << depender->GetName()
+          << ": Adding dependency to non-existent target: "
+          << dependee_name
+          << "\n";
+        cmSystemTools::Message(e.str().c_str());
+        break;
+      case cmPolicies::NEW:     // New behavior prints the error.
+        e << depender->GetName()
+          << ": Adding dependency to non-existent target: "
+          << dependee_name
+          << "\n";
+        cmSystemTools::Error(e.str().c_str());
+        return;
+      case cmPolicies::REQUIRED_IF_USED:    // TBD
+      case cmPolicies::REQUIRED_ALWAYS:     // TBD
+      case cmPolicies::OLD:     // Old behavior does not warn!
+      default:
+        break;
+      }
+    }
+
   // Skip targets that will not really be linked.  This is probably a
   // name conflict between an external library and an executable
   // within the project.
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 79af4d7..acd4ad6 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -491,6 +491,16 @@ cmPolicies::cmPolicies()
     "CMAKE_SHARED_LIBRARY_<Lang>_FLAGS whether it is modified or not and "
     "honor the POSITION_INDEPENDENT_CODE target property.",
     2,8,9,0, cmPolicies::WARN);
+
+    this->DefinePolicy(
+    CMP0019, "CMP0019",
+    "add_dependencies(target-name depend-target1 depend-target2 ...) "
+    "Dependent targets must all exist.  ",
+    "In CMake 2.8.10 and above this policy determines whether or not "
+    "the case is an error.  "
+    "The OLD behavior for this policy is to silently ignore the problem.  "
+    "The NEW behavior for this policy is to report an error.",
+    2,8,10,0, cmPolicies::WARN);
 }
 
 cmPolicies::~cmPolicies()
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 6932565..e4edabf 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -68,6 +68,7 @@ public:
     CMP0018, ///< Ignore language flags for shared libs, and adhere to
     /// POSITION_INDEPENDENT_CODE property and *_COMPILE_OPTIONS_PI{E,C}
     /// instead.
+    CMP0019, ///< Dependent target must exist
 
     /** \brief Always the last entry.
      *
