[Cmake-commits] [cmake-commits] david.cole committed cmGlobalXCodeGenerator.cxx 1.241 1.242

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 12 14:09:56 EST 2010


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

Modified Files:
	cmGlobalXCodeGenerator.cxx 
Log Message:
Fix for issue #9125 - invent CMAKE_XCODE_ATTRIBUTE_* variable mechanism. If there are variables that begin with CMAKE_XCODE_ATTRIBUTE_ then add corresponding attributes into the generated Xcode project file.


Index: cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.241
retrieving revision 1.242
diff -C 2 -d -r1.241 -r1.242
*** cmGlobalXCodeGenerator.cxx	4 Dec 2009 17:08:55 -0000	1.241
--- cmGlobalXCodeGenerator.cxx	12 Feb 2010 19:09:54 -0000	1.242
***************
*** 2759,2762 ****
--- 2759,2777 ----
      }
  
+   // put this last so it can override existing settings
+   // Convert "CMAKE_XCODE_ATTRIBUTE_*" properties directly.
+   {
+     std::vector<std::string> vars = this->CurrentMakefile->GetDefinitions();
+     for(std::vector<std::string>::const_iterator i = vars.begin();
+         i != vars.end(); ++i)
+     {
+       if(i->find("CMAKE_XCODE_ATTRIBUTE_") == 0)
+       {
+         buildSettings->AddAttribute(i->substr(22).c_str(),
+           this->CreateString(this->CurrentMakefile->GetDefinition(i->c_str())));
+       }
+     }
+   }
+ 
    std::string symroot = root->GetMakefile()->GetCurrentOutputDirectory();
    symroot += "/build";



More information about the Cmake-commits mailing list