From d0d25bb989bb0f3db290a2cb935c310aa06ec50b Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Wed, 1 May 2002 10:12:48 -0400 Subject: Reformatted the error printed by cmMakefile. --- Source/cmIncludeCommand.cxx | 2 +- Source/cmMakefile.cxx | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx index 54308e4..ce8ce85 100644 --- a/Source/cmIncludeCommand.cxx +++ b/Source/cmIncludeCommand.cxx @@ -35,7 +35,7 @@ bool cmIncludeCommand::InitialPass(std::vector const& args) args[0].c_str()); if(!optional && !readit) { - std::string m = "Could not find include file:"; + std::string m = "Could not find include file: "; m += args[0]; this->SetError(m.c_str()); return false; 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 { -- cgit v0.12