View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0008356 | CMake | CMake | public | 2009-01-07 22:24 | 2009-09-14 15:20 |
|
Reporter | Baron L. Roberts | |
Assigned To | | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | CMake-2-6 | |
Target Version | | Fixed in Version | | |
|
Summary | 0008356: XCode generator does not set correct file type on images |
Description | The enclosed patch ensures that png, gif, and jpg files are assigned the "image" file type in the XCode generator. Otherwise the images are treated as "sourcecode" and opened in the text editor leading to unpleasant noise being displayed. |
Tags | No tags attached. |
|
Attached Files | image.patch [^] (544 bytes) 2009-01-07 22:24 [Show Content] [Hide Content]diff -Nur cmake-2.6.2/Source/cmGlobalXCodeGenerator.cxx cmake-2.6.2-patched/Source/cmGlobalXCodeGenerator.cxx
--- cmake-2.6.2/Source/cmGlobalXCodeGenerator.cxx 2008-12-17 22:28:01.000000000 -0800
+++ cmake-2.6.2-patched/Source/cmGlobalXCodeGenerator.cxx 2009-01-07 19:17:31.000000000 -0800
@@ -569,6 +569,10 @@
{
sourcecode += ".c.c";
}
+ else if(ext == "png" || ext == "gif" || ext == "jpg")
+ {
+ sourcecode = "image";
+ }
//else
// {
// // Already specialized above or we leave sourcecode == "sourcecode"
|
|