MCPcopy Index your code
hub / github.com/Kitware/CMake / WriteStaticLibraryRules

Method WriteStaticLibraryRules

Source/cmMakefileLibraryTargetGenerator.cxx:133–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void cmMakefileLibraryTargetGenerator::WriteStaticLibraryRules()
134{
135 bool const requiresDeviceLinking = requireDeviceLinking(
136 *this->GeneratorTarget, *this->LocalGenerator, this->GetConfigName());
137 if (requiresDeviceLinking) {
138 this->WriteDeviceLibraryRules("CMAKE_CUDA_DEVICE_LINK_LIBRARY", false);
139 }
140
141 std::string linkLanguage =
142 this->GeneratorTarget->GetLinkerLanguage(this->GetConfigName());
143
144 std::string linkRuleVar = this->GeneratorTarget->GetCreateRuleVariable(
145 linkLanguage, this->GetConfigName());
146
147 std::string extraFlags;
148 this->LocalGenerator->GetStaticLibraryFlags(
149 extraFlags, this->GetConfigName(), linkLanguage, this->GeneratorTarget);
150 this->WriteLibraryRules(linkRuleVar, extraFlags, false);
151}
152
153void cmMakefileLibraryTargetGenerator::WriteSharedLibraryRules(bool relink)
154{

Callers 1

WriteRuleFilesMethod · 0.95

Calls 5

WriteLibraryRulesMethod · 0.95
requireDeviceLinkingFunction · 0.85
GetCreateRuleVariableMethod · 0.80
GetStaticLibraryFlagsMethod · 0.80
GetLinkerLanguageMethod · 0.45

Tested by

no test coverage detected