mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 08:08:24 -05:00
Merge topic 'pch-no-duplicates'
e01935ac9d PCH: No repeated path for internal generated PCH files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4030
This commit is contained in:
@@ -3376,14 +3376,8 @@ std::string cmGeneratorTarget::GetPchHeader(const std::string& config,
|
||||
this->GetGlobalGenerator()->FindGeneratorTarget(pchReuseFrom);
|
||||
}
|
||||
|
||||
if (this->GetGlobalGenerator()->IsMultiConfig()) {
|
||||
filename = cmStrCat(
|
||||
generatorTarget->LocalGenerator->GetCurrentBinaryDirectory(), "/");
|
||||
} else {
|
||||
// For GCC we need to have the header file .h[xx]
|
||||
// next to the .h[xx].gch file
|
||||
filename = generatorTarget->ObjectDirectory;
|
||||
}
|
||||
filename = cmStrCat(
|
||||
generatorTarget->LocalGenerator->GetCurrentBinaryDirectory(), "/");
|
||||
|
||||
const std::map<std::string, std::string> languageToExtension = {
|
||||
{ "C", ".h" },
|
||||
|
||||
Reference in New Issue
Block a user