mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
ENH: fix compile error
This commit is contained in:
parent
9c4302f79e
commit
d5cce9f0b5
@ -235,13 +235,14 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
|||||||
}
|
}
|
||||||
if(!this->Makefile->ExecuteCommand(newLFF))
|
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;
|
cmOStringStream error;
|
||||||
error << "Error in cmake code at\n"
|
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 \""
|
<< "A command failed during the invocation of macro \""
|
||||||
<< this->Args[0].c_str() << "\".";
|
<< this->Args[0].c_str() << "\".";
|
||||||
cmSystemTools::Error(error.str().c_str());
|
cmSystemTools::Error(error.str().c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user