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

Method ComputeTargetCompilePDB

Source/cmCommonTargetGenerator.cxx:241–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241std::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
269std::string cmCommonTargetGenerator::GetManifests(std::string const& config)
270{

Callers 5

WriteObjectRuleFilesMethod · 0.80
ComputePathsMethod · 0.80

Calls 6

GetCompilePDBPathMethod · 0.80
GetSupportDirectoryMethod · 0.80
GetTypeMethod · 0.45
emptyMethod · 0.45
IsMultiConfigMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected