MCPcopy Create free account
hub / github.com/Kitware/CMake / FinishWritingSource

Method FinishWritingSource

Source/cmVisualStudio10TargetGenerator.cxx:2774–2798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2772}
2773
2774void cmVisualStudio10TargetGenerator::FinishWritingSource(
2775 Elem& e2, ConfigToSettings const& toolSettings)
2776{
2777 std::vector<std::string> writtenSettings;
2778 for (auto const& configSettings : toolSettings) {
2779 for (auto const& setting : configSettings.second) {
2780
2781 if (std::find(writtenSettings.begin(), writtenSettings.end(),
2782 setting.first) != writtenSettings.end()) {
2783 continue;
2784 }
2785
2786 if (PropertyIsSameInAllConfigs(toolSettings, setting.first)) {
2787 e2.Element(setting.first, setting.second);
2788 writtenSettings.push_back(setting.first);
2789 } else {
2790 e2.WritePlatformConfigTag(setting.first,
2791 cmStrCat("'$(Configuration)|$(Platform)'=='",
2792 configSettings.first, '|',
2793 this->Platform, '\''),
2794 setting.second);
2795 }
2796 }
2797 }
2798}
2799
2800void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
2801 Elem& e2, cmSourceFile const* source)

Callers 3

WriteHeaderSourceMethod · 0.95
WriteExtraSourceMethod · 0.95
WriteAllSourcesMethod · 0.95

Calls 7

push_backMethod · 0.80
cmStrCatFunction · 0.70
findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
ElementMethod · 0.45

Tested by

no test coverage detected