MantisBT - CMake
View Issue Details
0014093CMakeCMakepublic2013-04-16 12:582013-10-21 08:52
Jamie Snape 
Brad King 
normalminoralways
closedfixed 
AppleOS X10.8
CMake 2.8.10.2 
 
0014093: Xcode 4.6 ignores "lastKnownFileType" for .txx files
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()));
No tags attached.
related to 0014498closed Brad King Folder references aren't added correctly to Xcode projects. 
Issue History
2013-04-16 12:58Jamie SnapeNew Issue
2013-04-17 10:33Brad KingNote Added: 0032897
2013-04-17 10:33Brad KingAssigned To => Brad King
2013-04-17 10:33Brad KingStatusnew => resolved
2013-04-17 10:33Brad KingResolutionopen => fixed
2013-10-07 10:09Robert MaynardNote Added: 0034035
2013-10-07 10:09Robert MaynardStatusresolved => closed
2013-10-21 08:52Brad KingRelationship addedrelated to 0014498

Notes
(0032897)
Brad King   
2013-04-17 10:33   
Thanks, fixed:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=56831461 [^]

The explicitFileType was already used elsewhere and appears to work way back in Xcode 1.5 too.
(0034035)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.