~ubuntu-branches/ubuntu/utopic/cmake/utopic

« back to all changes in this revision

Viewing changes to Source/cmExtraCodeBlocksGenerator.cxx

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-10-10 12:54:39 UTC
  • mfrom: (1.14.7)
  • Revision ID: package-import@ubuntu.com-20131010125439-h0ahaj004on6oj92
Tags: 2.8.12-0ubuntu1
New upstream release LP: #1246701

Show diffs side-by-side

added added

removed removed

Lines of Context:
621
621
                                  ->GetGeneratorTarget(target);
622
622
 
623
623
    // the compilerdefines for this target
624
 
    std::string cdefs = target->GetCompileDefinitions(buildType);
 
624
    std::vector<std::string> cdefs;
 
625
    target->GetCompileDefinitions(cdefs, buildType);
625
626
 
626
 
    if(!cdefs.empty())
 
627
    // Expand the list.
 
628
    for(std::vector<std::string>::const_iterator di = cdefs.begin();
 
629
        di != cdefs.end(); ++di)
627
630
      {
628
 
      // Expand the list.
629
 
      std::vector<std::string> defs;
630
 
      cmSystemTools::ExpandListArgument(cdefs.c_str(), defs);
631
 
      for(std::vector<std::string>::const_iterator di = defs.begin();
632
 
          di != defs.end(); ++di)
633
 
        {
634
 
        cmXMLSafe safedef(di->c_str());
635
 
        fout <<"            <Add option=\"-D" << safedef.str() << "\" />\n";
636
 
        }
 
631
      cmXMLSafe safedef(di->c_str());
 
632
      fout <<"            <Add option=\"-D" << safedef.str() << "\" />\n";
637
633
      }
638
634
 
639
635
    // the include directories for this target