summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 610c294..fd2989a 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -224,10 +224,13 @@ void cmMakefile::ExecuteCommand(std::string &name,
}
if(!usedCommand->InitialPass(expandedArguments))
{
- cmSystemTools::Error(usedCommand->GetName(),
- ": Error : \n",
- usedCommand->GetError(),
- m_cmCurrentDirectory.c_str());
+ std::string error;
+ error = usedCommand->GetName();
+ error += ": Error : \n";
+ error += usedCommand->GetError();
+ error += " from CMakeLists.txt file in directory: ";
+ error += m_cmCurrentDirectory;
+ cmSystemTools::Error(error.c_str());
}
else
{