| 131 | } |
| 132 | |
| 133 | void 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 | |
| 153 | void cmMakefileLibraryTargetGenerator::WriteSharedLibraryRules(bool relink) |
| 154 | { |
no test coverage detected