ENH: Add context information when a source file cannot be found.
This commit is contained in:
parent
fb8c255c2d
commit
19aafdb355
@ -179,7 +179,7 @@ bool cmSourceFile::FindFullPath()
|
|||||||
|
|
||||||
cmOStringStream e;
|
cmOStringStream e;
|
||||||
e << "Cannot find source file \"" << this->Location.GetName() << "\"";
|
e << "Cannot find source file \"" << this->Location.GetName() << "\"";
|
||||||
e << "\n\nTried extensions";
|
e << ". Tried extensions";
|
||||||
for(std::vector<std::string>::const_iterator ext = srcExts.begin();
|
for(std::vector<std::string>::const_iterator ext = srcExts.begin();
|
||||||
ext != srcExts.end(); ++ext)
|
ext != srcExts.end(); ++ext)
|
||||||
{
|
{
|
||||||
@ -190,7 +190,7 @@ bool cmSourceFile::FindFullPath()
|
|||||||
{
|
{
|
||||||
e << " ." << *ext;
|
e << " ." << *ext;
|
||||||
}
|
}
|
||||||
cmSystemTools::Error(e.str().c_str());
|
this->Location.GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||||
this->FindFullPathFailed = true;
|
this->FindFullPathFailed = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user