ENH: prevent crash
This commit is contained in:
parent
3e57d1f8ad
commit
d2b3e06cd0
|
@ -340,6 +340,12 @@ void cmMakefileLibraryTargetGenerator::CopyFrameworkResources(
|
|||
{
|
||||
cmCustomCommandLine line;
|
||||
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/";
|
||||
dest += sf->GetSourceName();
|
||||
std::string ext = sf->GetSourceExtension();
|
||||
|
|
Loading…
Reference in New Issue