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

Function WriteSlnProjectConfigurationPlatforms

Source/cmVSSolution.cxx:213–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void WriteSlnProjectConfigurationPlatforms(std::ostream& sln,
214 Solution const& solution,
215 Solution::Project const& project)
216{
217 auto const writeStep = [&sln, &solution, &project](std::size_t i,
218 cm::string_view step) {
219 sln << "\t\t{" << project.Id << "}." << solution.Configs[i] << '|'
220 << solution.Platform << "." << step << " = "
221 << project.Configs[i].Config << '|' << project.Platform << '\n';
222 };
223 assert(project.Configs.size() == solution.Configs.size());
224 for (std::size_t i = 0; i < solution.Configs.size(); ++i) {
225 writeStep(i, "ActiveCfg"_s);
226 if (project.Configs[i].Build) {
227 writeStep(i, "Build.0"_s);
228 }
229 if (project.Configs[i].Deploy) {
230 writeStep(i, "Deploy.0"_s);
231 }
232 }
233}
234
235void WriteSlnProjectConfigurationPlatforms(
236 std::ostream& sln, Solution const& solution,

Callers 1

WriteSlnFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…