mirror of
https://github.com/reactos/CMake.git
synced 2024-12-17 00:26:42 +00:00
Merge topic 'compile-pdb-default'
a4da6fa7
Ninja,Makefile: Name static library compile PDB files as VS does
This commit is contained in:
commit
7108d4b73d
@ -520,8 +520,15 @@ void cmMakefileTargetGenerator::WriteObjectBuildFile(
|
||||
targetFullPathCompilePDB =
|
||||
this->GeneratorTarget->GetCompilePDBPath(this->ConfigName);
|
||||
if (targetFullPathCompilePDB.empty()) {
|
||||
// Match VS default: `$(IntDir)vc$(PlatformToolsetVersion).pdb`.
|
||||
// A trailing slash tells the toolchain to add its default file name.
|
||||
targetFullPathCompilePDB =
|
||||
this->GeneratorTarget->GetSupportDirectory() + "/";
|
||||
if (this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY) {
|
||||
// Match VS default for static libs: `$(IntDir)$(ProjectName).pdb`.
|
||||
targetFullPathCompilePDB += this->GeneratorTarget->GetName();
|
||||
targetFullPathCompilePDB += ".pdb";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -359,7 +359,14 @@ bool cmNinjaTargetGenerator::SetMsvcTargetPdbVariable(cmNinjaVars& vars) const
|
||||
compilePdbPath =
|
||||
this->GeneratorTarget->GetCompilePDBPath(this->GetConfigName());
|
||||
if (compilePdbPath.empty()) {
|
||||
// Match VS default: `$(IntDir)vc$(PlatformToolsetVersion).pdb`.
|
||||
// A trailing slash tells the toolchain to add its default file name.
|
||||
compilePdbPath = this->GeneratorTarget->GetSupportDirectory() + "/";
|
||||
if (this->GeneratorTarget->GetType() == cmStateEnums::STATIC_LIBRARY) {
|
||||
// Match VS default for static libs: `$(IntDir)$(ProjectName).pdb`.
|
||||
compilePdbPath += this->GeneratorTarget->GetName();
|
||||
compilePdbPath += ".pdb";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user