diff options
-rw-r--r-- | Source/cmInstallTargetsCommand.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
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<std::string> 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; } |