[Cmake-commits] [cmake-commits] hoffman committed cmLocalGenerator.cxx 1.310 1.311

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Sep 17 16:09:56 EDT 2009


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

Modified Files:
	cmLocalGenerator.cxx 
Log Message:
Fix case where no archs are found on older macs.


Index: cmLocalGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalGenerator.cxx,v
retrieving revision 1.310
retrieving revision 1.311
diff -C 2 -d -r1.310 -r1.311
*** cmLocalGenerator.cxx	17 Sep 2009 15:53:02 -0000	1.310
--- cmLocalGenerator.cxx	17 Sep 2009 20:09:52 -0000	1.311
***************
*** 1768,1777 ****
        cmSystemTools::ExpandListArgument(std::string(osxArch),
                                          archs);
!       bool addArchFlag = true;
!       if(archs.size() == 1)
          {
!         if(archs[0] == "")
            {
!           addArchFlag = false;
            }
          }
--- 1768,1777 ----
        cmSystemTools::ExpandListArgument(std::string(osxArch),
                                          archs);
!       bool addArchFlag = false;
!       if(archs.size() >= 1)
          {
!         if(archs[0] != "")
            {
!           addArchFlag = true;
            }
          }



More information about the Cmake-commits mailing list