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

Method AddRuntimeLinkLibrary

Source/cmComputeLinkInformation.cxx:1069–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069void cmComputeLinkInformation::AddRuntimeLinkLibrary(std::string const& lang)
1070{
1071 std::string const& runtimeLibrary =
1072 this->Target->GetRuntimeLinkLibrary(lang, this->Config);
1073 if (runtimeLibrary.empty()) {
1074 return;
1075 }
1076 if (cmValue runtimeLinkOptions = this->Makefile->GetDefinition(cmStrCat(
1077 "CMAKE_", lang, "_RUNTIME_LIBRARY_LINK_OPTIONS_", runtimeLibrary))) {
1078 cmList libs{ *runtimeLinkOptions };
1079 for (auto const& i : libs) {
1080 if (!cm::contains(this->ImplicitLinkLibs, i)) {
1081 this->AddItem({ i });
1082 }
1083 }
1084 }
1085}
1086
1087namespace {
1088std::string const gcc_s = "gcc_s";

Callers 1

AddImplicitLinkInfoMethod · 0.95

Calls 5

AddItemMethod · 0.95
GetRuntimeLinkLibraryMethod · 0.80
cmStrCatFunction · 0.70
emptyMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected