From 5966baeec375652f573221749436d0cc4d523e89 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 15 Dec 2005 12:01:28 -0500 Subject: ENH: Report an error if the target does not exists --- Source/cmInstallTargetsCommand.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmInstallTargetsCommand.cxx b/Source/cmInstallTargetsCommand.cxx index 421fcea..0216c4d 100644 --- a/Source/cmInstallTargetsCommand.cxx +++ b/Source/cmInstallTargetsCommand.cxx @@ -47,8 +47,14 @@ bool cmInstallTargetsCommand::InitialPass(std::vector const& args) tgts[*s].SetInstallPath(args[0].c_str()); tgts[*s].SetRuntimeInstallPath(runtime_dir.c_str()); } + else + { + std::string str = "Cannot find target: \"" + *s + "\" to install."; + this->SetError(str.c_str()); + return false; + } } - + return true; } -- cgit v0.12