summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-11-11 12:21:12 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-11-11 12:21:12 (GMT)
commite01935ac9d61e22be49f26910a76769585d7a257 (patch)
tree164e4f3c601c95878625352920bc390790d539d9 /Source/cmGeneratorTarget.cxx
parentadf863f15e348789e4d20e3d2dd792f35d4f4725 (diff)
downloadCMake-e01935ac9d61e22be49f26910a76769585d7a257.zip
CMake-e01935ac9d61e22be49f26910a76769585d7a257.tar.gz
CMake-e01935ac9d61e22be49f26910a76769585d7a257.tar.bz2
PCH: No repeated path for internal generated PCH files
Fixes: #19952
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index f235af9..c3ed9e8 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -3360,14 +3360,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" },