mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-09 23:44:00 +03:00
cmGeneratorTarget: disambiguate pch objects for multi-config generators
This commit is contained in:
1 parent
fe0163cd23
commit
b1ccad8651
1 file changed
+5
-1
@@ -3188,8 +3188,12 @@ std::string cmGeneratorTarget::GetPchFile(std::string const& config,
|
||||
auto* pchSf = this->Makefile->GetOrCreateSource(
|
||||
pchSource, false, cmSourceFileLocationKind::Known);
|
||||
pchSf->ResolveFullPath();
|
||||
std::string cfgSubdir;
|
||||
if (this->GetGlobalGenerator()->IsMultiConfig()) {
|
||||
cfgSubdir = cmStrCat(config, '/');
|
||||
}
|
||||
pchFile = cmStrCat(
|
||||
this->GetSupportDirectory(), '/',
|
||||
this->GetSupportDirectory(), '/', cfgSubdir,
|
||||
this->LocalGenerator->GetShortObjectFileName(*pchSf), pchExtension);
|
||||
} else {
|
||||
pchFile =
|
||||
|
||||
Reference in new issue
Block a user