Merge branch 'xcode-storyboard-file-type-2.8.12' into release

This commit is contained in:
Brad King 2014-01-09 14:06:05 -05:00
commit 67fd61b061
1 changed files with 4 additions and 2 deletions

View File

@ -877,8 +877,10 @@ cmGlobalXCodeGenerator::CreateXCodeFileReferenceFromPath(
}
std::string sourcecode = GetSourcecodeValueFromFileExtension(ext, lang);
fileRef->AddAttribute("explicitFileType",
const char* attribute = (sourcecode == "file.storyboard") ?
"lastKnownFileType" :
"explicitFileType";
fileRef->AddAttribute(attribute,
this->CreateString(sourcecode.c_str()));
// Store the file path relative to the top of the source tree.