[cmake-commits] hoffman committed cmGlobalXCodeGenerator.cxx 1.133 1.134

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 20 13:52:31 EST 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv20094

Modified Files:
	cmGlobalXCodeGenerator.cxx 
Log Message:
ENH: fix source extensions fror txt on xcode


Index: cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- cmGlobalXCodeGenerator.cxx	20 Feb 2007 16:14:41 -0000	1.133
+++ cmGlobalXCodeGenerator.cxx	20 Feb 2007 18:52:29 -0000	1.134
@@ -515,11 +515,16 @@
     {
     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 = 



More information about the Cmake-commits mailing list