[cmake-developers] [CMake 0014093]: Xcode 4.6 ignores "lastKnownFileType" for .txx files
Mantis Bug Tracker
mantis at public.kitware.com
Tue Apr 16 12:58:49 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14093
======================================================================
Reported By: Jamie Snape
Assigned To:
======================================================================
Project: CMake
Issue ID: 14093
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-04-16 12:58 EDT
Last Modified: 2013-04-16 12:58 EDT
======================================================================
Summary: Xcode 4.6 ignores "lastKnownFileType" for .txx files
Description:
CreateXCodeFileReferenceFromPath in Source/cmGlobalXCodeGenerator.cxx (line 885)
is writing the attribute "lastKnownFileType" to set the file type for a given
file extension. However, for .txx files, Xcode 4.6 is ignoring that attribute
and setting the file type to "plain text" when the project is opened. If instead
of "lastKnownFileType", the attribute "explicitFileType" is written, then the
problem is resolved, i.e., change
fileRef->AddAttribute("lastKnownFileType",
this->CreateString(sourcecode.c_str()));
to
fileRef->AddAttribute("explicitFileType",
this->CreateString(sourcecode.c_str()));
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-04-16 12:58 Jamie Snape New Issue
======================================================================
More information about the cmake-developers
mailing list