[Cmake-commits] [cmake-commits] hoffman committed cmGlobalXCodeGenerator.cxx 1.199 1.200

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Sep 11 14:50:40 EDT 2008


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

Modified Files:
	cmGlobalXCodeGenerator.cxx 
Log Message:
BUG: make sure flag is found even with extra spaces at the start


Index: cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.199
retrieving revision 1.200
diff -C 2 -d -r1.199 -r1.200
*** cmGlobalXCodeGenerator.cxx	5 Sep 2008 19:51:19 -0000	1.199
--- cmGlobalXCodeGenerator.cxx	11 Sep 2008 18:50:38 -0000	1.200
***************
*** 1018,1022 ****
    std::string retFlag;
    std::string::size_type pos = flags.find(flag);
!   if(pos != flags.npos && (pos ==0 || flags[pos]==' '))
      {
      while(pos < flags.size() && flags[pos] != ' ')
--- 1018,1022 ----
    std::string retFlag;
    std::string::size_type pos = flags.find(flag);
!   if(pos != flags.npos && (pos ==0 || flags[pos-1]==' '))
      {
      while(pos < flags.size() && flags[pos] != ' ')



More information about the Cmake-commits mailing list