MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008968 | CMake | CMake | public | 2009-05-05 17:06 | 2016-06-10 14:30 |
| Reporter | goatboy160 | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0008968: Set .h file type attribute correctly for Objective-C headers | ||||
| Description | .h files for objective-C are not set properly in xcode. This causes the editor to not properly highlight the code. Putting in the following patch fixes the issue for my usage, since my objective-c code is in a bundle. Index: cmGlobalXCodeGenerator.cxx =================================================================== --- cmGlobalXCodeGenerator.cxx (revision 30) +++ cmGlobalXCodeGenerator.cxx (working copy) @@ -575,7 +575,8 @@ else if(ext == "h" || ext == "hxx" || ext == "hpp") { const char* linkLanguage = cmtarget.GetLinkerLanguage(this); - if(linkLanguage && (std::string(linkLanguage) == "CXX")) + // Force bundles to have sourcecode.c.h for objective-C headers... + if(linkLanguage && (std::string(linkLanguage) == "CXX") && !cmtarget.GetPropertyAsBool("MACOSX_BUNDLE") ) { sourcecode += ".cpp.h"; } | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-05-05 17:06 | goatboy160 | New Issue | |||
| 2009-09-21 13:20 | Bill Hoffman | Note Added: 0017677 | |||
| 2009-09-21 13:20 | Bill Hoffman | Status | new => assigned | ||
| 2009-09-21 13:20 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
| 2010-09-28 12:04 | goatboy160 | Note Added: 0022374 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041552 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||