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:
Brad King 2008-07-07 13:12:21 -04:00
parent e225a377b9
commit 9a3c0bf073
1 changed files with 8 additions and 1 deletions

View File

@ -704,7 +704,14 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen,
} }
else else
{ {
sourceFiles.push_back(xsf); // 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);
}
} }
} }