[cmake-commits] hoffman committed cmGlobalXCodeGenerator.cxx 1.125 1.126

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Oct 12 10:57:39 EDT 2006


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

Modified Files:
	cmGlobalXCodeGenerator.cxx 
Log Message:
ENH: fix for bug -gdwarf getting removed


Index: cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- cmGlobalXCodeGenerator.cxx	11 Oct 2006 16:41:17 -0000	1.125
+++ cmGlobalXCodeGenerator.cxx	12 Oct 2006 14:57:36 -0000	1.126
@@ -866,6 +866,10 @@
   std::string::size_type pos = flags.find(flag);
   if(pos != flags.npos)
     {
+    if(flags[pos + strlen(flag)] != ' ')
+      {
+      return flags;
+      }
     retFlag = flag;
     // remove the flag
     flags[pos]=' ';



More information about the Cmake-commits mailing list