summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2002-05-01 14:12:48 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2002-05-01 14:12:48 (GMT)
commitd0d25bb989bb0f3db290a2cb935c310aa06ec50b (patch)
treeed8b711732ead6ceca5184edb80d4525df74380c /Source/cmMakefile.cxx
parenta7664e8e01cdae325de0ce379cbd3266130058ba (diff)
downloadCMake-d0d25bb989bb0f3db290a2cb935c310aa06ec50b.zip
CMake-d0d25bb989bb0f3db290a2cb935c310aa06ec50b.tar.gz
CMake-d0d25bb989bb0f3db290a2cb935c310aa06ec50b.tar.bz2
Reformatted the error printed by cmMakefile.
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
{