View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0011307 | CMake | CMake | public | 2010-10-12 09:01 | 2010-10-26 16:33 |
|
Reporter | dsieger | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | CMake-2-8 | |
Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | |
|
Summary | 0011307: Xcode generator does not recognise *.hh files correctly |
Description | The Xcode generator does not recognize C++ *.hh header files correctly. The filetype is set to sourcecode instead of sourcecode.cpp.h. The attached patch fixes this. |
Tags | No tags attached. |
|
Attached Files | hh.patch [^] (472 bytes) 2010-10-12 09:01 [Show Content] [Hide Content]diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 0976a4d..2f7bc44 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -643,7 +643,7 @@ cmGlobalXCodeGenerator::CreateXCodeFileReference(cmSourceFile* sf,
sourcecode += ".c.h";
}
else if(ext == "hxx" || ext == "hpp" || ext == "txx"
- || ext == "pch")
+ || ext == "pch" || ext == "hh")
{
sourcecode += ".cpp.h";
}
|
|