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

Method GetStartupProjectName

Source/cmGlobalVisualStudioGenerator.cxx:294–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294std::string cmGlobalVisualStudioGenerator::GetStartupProjectName(
295 cmLocalGenerator const* root) const
296{
297 cmValue n = root->GetMakefile()->GetProperty("VS_STARTUP_PROJECT");
298 if (cmNonempty(n)) {
299 std::string startup = *n;
300 if (this->FindTarget(startup)) {
301 return startup;
302 }
303 root->GetMakefile()->IssueMessage(
304 MessageType::AUTHOR_WARNING,
305 cmStrCat("Directory property VS_STARTUP_PROJECT specifies target "
306 "'",
307 startup, "' that does not exist. Ignoring."));
308 }
309
310 // default, if not specified
311 return this->GetAllTargetName();
312}
313
314bool IsVisualStudioMacrosFileRegistered(std::string const& macrosFile,
315 std::string const& regKeyBase,

Callers 1

CreateSolutionMethod · 0.95

Calls 7

cmNonemptyFunction · 0.85
FindTargetMethod · 0.80
cmStrCatFunction · 0.70
GetPropertyMethod · 0.45
GetMakefileMethod · 0.45
IssueMessageMethod · 0.45
GetAllTargetNameMethod · 0.45

Tested by

no test coverage detected