diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-11-12 13:28:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-11-12 13:28:46 (GMT) |
commit | 9a935adca9f969931cedd1b5a3fdfef5bfcbc9d4 (patch) | |
tree | 02caa234d71af44294df7e8961d2f926955b204c /Source/cmGeneratorTarget.cxx | |
parent | bec38523de60cd7602b0fa89d38356c6f5e7cddd (diff) | |
parent | e01935ac9d61e22be49f26910a76769585d7a257 (diff) | |
download | CMake-9a935adca9f969931cedd1b5a3fdfef5bfcbc9d4.zip CMake-9a935adca9f969931cedd1b5a3fdfef5bfcbc9d4.tar.gz CMake-9a935adca9f969931cedd1b5a3fdfef5bfcbc9d4.tar.bz2 |
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
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index cb9f49e..dd3fefa 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -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" }, |