summaryrefslogtreecommitdiffstats
path: root/Source/cmFunctionCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-01-28 21:10:29 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-25 13:47:26 (GMT)
commit14a8d61fd49a9b990cbef7e1495e4763f31c55f2 (patch)
tree5f680dfd5058708d30cea6442060a25c374849ff /Source/cmFunctionCommand.cxx
parent2af853deb5225a9c8cb3d1e6311680c3fb7d86aa (diff)
downloadCMake-14a8d61fd49a9b990cbef7e1495e4763f31c55f2.zip
CMake-14a8d61fd49a9b990cbef7e1495e4763f31c55f2.tar.gz
CMake-14a8d61fd49a9b990cbef7e1495e4763f31c55f2.tar.bz2
cmMakefile: Port nested error logic away from cmExecutionStatus
It is no longer needed.
Diffstat (limited to 'Source/cmFunctionCommand.cxx')
-rw-r--r--Source/cmFunctionCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index 40c54db..f0e4854 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -76,7 +76,7 @@ public:
};
bool cmFunctionHelperCommand::InvokeInitialPass(
- const std::vector<cmListFileArgument>& args, cmExecutionStatus& inStatus)
+ const std::vector<cmListFileArgument>& args, cmExecutionStatus&)
{
// Expand the argument list to the function.
std::vector<std::string> expandedArgs;
@@ -129,11 +129,11 @@ bool cmFunctionHelperCommand::InvokeInitialPass(
for (unsigned int c = 0; c < this->Functions.size(); ++c) {
cmExecutionStatus status;
if (!this->Makefile->ExecuteCommand(this->Functions[c], status) ||
- status.GetNestedError()) {
+ (cmSystemTools::GetErrorOccuredFlag() &&
+ !cmSystemTools::GetFatalErrorOccured())) {
// The error message should have already included the call stack
// so we do not need to report an error here.
functionScope.Quiet();
- inStatus.SetNestedError(true);
return false;
}
if (status.GetReturnInvoked()) {