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

Method NeedLinkLibraryDependencies

Source/cmGlobalVisualStudio8Generator.cxx:393–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393bool 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
416static cmVS7FlagTable cmVS8ExtraFlagTable[] = {
417 { "CallingConvention", "Gd", "cdecl", "0", 0 },

Callers 2

OutputBuildToolMethod · 0.45
WriteLinkOptionsMethod · 0.45

Calls 6

IsInBuildSystemMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetLocalGeneratorMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected