diff options
author | Brad King <brad.king@kitware.com> | 2008-07-07 17:12:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-07 17:12:21 (GMT) |
commit | 9a3c0bf07308b89f2b13e877048bbb8f43717c6f (patch) | |
tree | 7421d1dd1a93b1864c3125150fc8e6479f51180b /Source/cmGlobalXCodeGenerator.cxx | |
parent | e225a377b9d650a1320c8c5354dfefca76405e3d (diff) | |
download | CMake-9a3c0bf07308b89f2b13e877048bbb8f43717c6f.zip CMake-9a3c0bf07308b89f2b13e877048bbb8f43717c6f.tar.gz CMake-9a3c0bf07308b89f2b13e877048bbb8f43717c6f.tar.bz2 |
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.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 384098a..6ae073b 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -704,7 +704,14 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen, } 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); + } } } |