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

Method GetRuntimeLinkLibrary

Source/cmGeneratorTarget.cxx:4286–4303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4284}
4285
4286std::string cmGeneratorTarget::GetRuntimeLinkLibrary(
4287 std::string const& lang, std::string const& config) const
4288{
4289 // This is activated by the presence of a default selection whether or
4290 // not it is overridden by a property.
4291 cmValue runtimeLibraryDefault = this->Makefile->GetDefinition(
4292 cmStrCat("CMAKE_", lang, "_RUNTIME_LIBRARY_DEFAULT"));
4293 if (!cmNonempty(runtimeLibraryDefault)) {
4294 return std::string();
4295 }
4296 cmValue runtimeLibraryValue =
4297 this->Target->GetProperty(cmStrCat(lang, "_RUNTIME_LIBRARY"));
4298 if (!runtimeLibraryValue) {
4299 runtimeLibraryValue = runtimeLibraryDefault;
4300 }
4301 return cmSystemTools::UpperCase(cmGeneratorExpression::Evaluate(
4302 *runtimeLibraryValue, this->LocalGenerator, config, this));
4303}
4304
4305std::string cmGeneratorTarget::GetFortranModuleDirectory(
4306 std::string const& working_dir) const

Callers 3

AddRuntimeLinkLibraryMethod · 0.80
ComputeCudaOptionsMethod · 0.80

Calls 4

cmNonemptyFunction · 0.85
cmStrCatFunction · 0.70
GetDefinitionMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected