| 391 | } |
| 392 | |
| 393 | bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies( |
| 394 | cmGeneratorTarget* target) |
| 395 | { |
| 396 | // Look for utility dependencies that magically link. |
| 397 | auto const& utilities = target->GetUtilities(); |
| 398 | return std::any_of( |
| 399 | utilities.begin(), utilities.end(), |
| 400 | [target](BT<std::pair<std::string, bool>> const& ui) { |
| 401 | if (cmGeneratorTarget* depTarget = |
| 402 | target->GetLocalGenerator()->FindGeneratorTargetToUse( |
| 403 | ui.Value.first)) { |
| 404 | if (depTarget->IsInBuildSystem() && |
| 405 | depTarget->GetProperty("EXTERNAL_MSPROJECT")) { |
| 406 | // This utility dependency names an external .vcproj target. |
| 407 | // We use LinkLibraryDependencies="true" to link to it without |
| 408 | // predicting the .lib file location or name. |
| 409 | return true; |
| 410 | } |
| 411 | } |
| 412 | return false; |
| 413 | }); |
| 414 | } |
| 415 | |
| 416 | static cmVS7FlagTable cmVS8ExtraFlagTable[] = { |
| 417 | { "CallingConvention", "Gd", "cdecl", "0", 0 }, |
no test coverage detected