summaryrefslogtreecommitdiff
path: root/Source/cmInstallTargetsCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-15 12:01:28 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-15 12:01:28 -0500
commit5966baeec375652f573221749436d0cc4d523e89 (patch)
tree26f790283e263aa18fe8e93bf413b5167cccf1fc /Source/cmInstallTargetsCommand.cxx
parentd2689c95a1591fd7bc5bc8a2f1515a2db1d88b72 (diff)
downloadcmake-5966baeec375652f573221749436d0cc4d523e89.tar.gz
ENH: Report an error if the target does not exists
Diffstat (limited to 'Source/cmInstallTargetsCommand.cxx')
-rw-r--r--Source/cmInstallTargetsCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmInstallTargetsCommand.cxx b/Source/cmInstallTargetsCommand.cxx
index 421fcea088..0216c4db30 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;
}