ENH: clean up error report for source files not found
This commit is contained in:
parent
3a316a6e0a
commit
7d907c8d59
@ -127,7 +127,7 @@ void cmSourceFile::SetName(const char* name, const char* dir,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string errorMsg = "Tried";
|
std::string errorMsg = "\n\nTried";
|
||||||
for( std::vector<std::string>::const_iterator ext = sourceExts.begin();
|
for( std::vector<std::string>::const_iterator ext = sourceExts.begin();
|
||||||
ext != sourceExts.end(); ++ext )
|
ext != sourceExts.end(); ++ext )
|
||||||
{
|
{
|
||||||
@ -140,10 +140,8 @@ void cmSourceFile::SetName(const char* name, const char* dir,
|
|||||||
errorMsg += " .";
|
errorMsg += " .";
|
||||||
errorMsg += *ext;
|
errorMsg += *ext;
|
||||||
}
|
}
|
||||||
errorMsg += " for ";
|
cmSystemTools::Error("can not find file ", pathname.c_str(),
|
||||||
|
errorMsg.c_str());
|
||||||
cmSystemTools::Error("can not find file ", pathname.c_str());
|
|
||||||
cmSystemTools::Error(errorMsg.c_str(), pathname.c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user