Browse Source

ENH: fix source extensions fror txt on xcode

Bill Hoffman 19 years ago
parent
commit
d5cb0f48b7
1 changed files with 7 additions and 2 deletions
  1. 7 2
      Source/cmGlobalXCodeGenerator.cxx

+ 7 - 2
Source/cmGlobalXCodeGenerator.cxx

@@ -515,11 +515,16 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
     {
     sourcecode += ".c.c";
     }
-  else
+  else if(strcmp(lang, "CXX") == 0)
     {
     sourcecode += ".cpp.cpp";
     }
-
+  else
+    {
+    sourcecode += ext;
+    sourcecode += ".";
+    sourcecode += ext;
+    }
   fileRef->AddAttribute("lastKnownFileType", 
                         this->CreateString(sourcecode.c_str()));
   std::string path =