ENH: prevent crash
This commit is contained in:
parent
3e57d1f8ad
commit
d2b3e06cd0
@ -340,6 +340,12 @@ void cmMakefileLibraryTargetGenerator::CopyFrameworkResources(
|
|||||||
{
|
{
|
||||||
cmCustomCommandLine line;
|
cmCustomCommandLine line;
|
||||||
cmSourceFile* sf = this->Makefile->GetOrCreateSource(i->c_str());
|
cmSourceFile* sf = this->Makefile->GetOrCreateSource(i->c_str());
|
||||||
|
if(!sf)
|
||||||
|
{
|
||||||
|
cmSystemTools::Error(
|
||||||
|
"could not find resource file.", i->c_str());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
std::string dest = outpath + "Resources/";
|
std::string dest = outpath + "Resources/";
|
||||||
dest += sf->GetSourceName();
|
dest += sf->GetSourceName();
|
||||||
std::string ext = sf->GetSourceExtension();
|
std::string ext = sf->GetSourceExtension();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user