| 239 | } |
| 240 | |
| 241 | std::string cmCommonTargetGenerator::ComputeTargetCompilePDB( |
| 242 | std::string const& config) const |
| 243 | { |
| 244 | std::string compilePdbPath; |
| 245 | if (this->GeneratorTarget->GetType() > cmStateEnums::OBJECT_LIBRARY) { |
| 246 | return compilePdbPath; |
| 247 | } |
| 248 | |
| 249 | compilePdbPath = this->GeneratorTarget->GetCompilePDBPath(config); |
| 250 | if (compilePdbPath.empty()) { |
| 251 | // Match VS default: `$(IntDir)vc$(PlatformToolsetVersion).pdb`. |
| 252 | // A trailing slash tells the toolchain to add its default file name. |
| 253 | compilePdbPath = this->GeneratorTarget->GetSupportDirectory(); |
| 254 | if (this->GlobalCommonGenerator->IsMultiConfig()) { |
| 255 | compilePdbPath += "/"; |
| 256 | compilePdbPath += config; |
| 257 | } |
| 258 | compilePdbPath += "/"; |
| 259 | if (this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY) { |
| 260 | // Match VS default for static libs: `$(IntDir)$(ProjectName).pdb`. |
| 261 | compilePdbPath += this->GeneratorTarget->GetName(); |
| 262 | compilePdbPath += ".pdb"; |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | return compilePdbPath; |
| 267 | } |
| 268 | |
| 269 | std::string cmCommonTargetGenerator::GetManifests(std::string const& config) |
| 270 | { |
no test coverage detected