| 1067 | } |
| 1068 | |
| 1069 | void 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 | |
| 1087 | namespace { |
| 1088 | std::string const gcc_s = "gcc_s"; |
no test coverage detected