diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2002-05-01 14:12:48 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2002-05-01 14:12:48 (GMT) |
commit | d0d25bb989bb0f3db290a2cb935c310aa06ec50b (patch) | |
tree | ed8b711732ead6ceca5184edb80d4525df74380c /Source/cmMakefile.cxx | |
parent | a7664e8e01cdae325de0ce379cbd3266130058ba (diff) | |
download | CMake-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.cxx | 11 |
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 { |