[cmake-commits] hoffman committed cmMacroCommand.cxx 1.29 1.30
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 3 12:09:50 EDT 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv30721
Modified Files:
cmMacroCommand.cxx
Log Message:
ENH: fix compile error
Index: cmMacroCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMacroCommand.cxx,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- cmMacroCommand.cxx 3 Oct 2006 14:57:31 -0000 1.29
+++ cmMacroCommand.cxx 3 Oct 2006 16:09:47 -0000 1.30
@@ -235,13 +235,14 @@
}
if(!this->Makefile->ExecuteCommand(newLFF))
{
- if(!args[0].FilePath)
+ const char* filePath = args[0].FilePath;
+ if(!filePath)
{
- args[0].FilePath = "Unknown";
+ filePath = "Unknown";
}
cmOStringStream error;
error << "Error in cmake code at\n"
- << args[0].FilePath << ":" << args[0].Line << ":\n"
+ << filePath << ":" << args[0].Line << ":\n"
<< "A command failed during the invocation of macro \""
<< this->Args[0].c_str() << "\".";
cmSystemTools::Error(error.str().c_str());
More information about the Cmake-commits
mailing list