| 292 | } |
| 293 | |
| 294 | std::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 | |
| 314 | bool IsVisualStudioMacrosFileRegistered(std::string const& macrosFile, |
| 315 | std::string const& regKeyBase, |
no test coverage detected