BUG: Do not build human-reference files in Xcode
- The Info.plist file in app bundles should not be built. - User-specified files such as foo.txt should not be built. - Only files with a recognized language should be built, just as in the Makefiles generators. - See bug #7277.
This commit is contained in:
parent
e225a377b9
commit
9a3c0bf073
|
@ -704,9 +704,16 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
|
|||
}
|
||||
else
|
||||
{
|
||||
// Include this file in the build if it has a known language
|
||||
// and has not been listed as an ignored extension for this
|
||||
// generator.
|
||||
if(this->CurrentLocalGenerator->GetSourceFileLanguage(**i) &&
|
||||
!this->IgnoreFile((*i)->GetExtension().c_str()))
|
||||
{
|
||||
sourceFiles.push_back(xsf);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// some build phases only apply to bundles and/or frameworks
|
||||
bool isFrameworkTarget = cmtarget.IsFrameworkOnApple();
|
||||
|
|
Loading…
Reference in New Issue