diff options
author | Brad King <brad.king@kitware.com> | 2021-11-09 12:52:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-09 12:53:19 (GMT) |
commit | 9fbbe2913865855ba6b250facfab96c0ca46f916 (patch) | |
tree | 722f6e50ccccd8526696678b5f9fd4e827ca05f4 /Source/cmLocalGenerator.cxx | |
parent | 2b5ed7cc3a3ee2661fcd6473f7beeedc6ed19d55 (diff) | |
parent | 244550997f83294d8fd1e91665b87ab6185a3033 (diff) | |
download | CMake-9fbbe2913865855ba6b250facfab96c0ca46f916.zip CMake-9fbbe2913865855ba6b250facfab96c0ca46f916.tar.gz CMake-9fbbe2913865855ba6b250facfab96c0ca46f916.tar.bz2 |
Merge topic 'nmc-reuse-from'
244550997f PCH: Fixed Ninja Multi-Config and REUSE_FROM for MSVC
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !6713
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 1fac0cb..a172e42 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2754,7 +2754,7 @@ void cmLocalGenerator::CopyPchCompilePdb( bool stdPipesUTF8 = true; auto configGenex = [&](cm::string_view expr) -> std::string { - if (this->GetGlobalGenerator()->IsVisualStudio()) { + if (this->GetGlobalGenerator()->IsMultiConfig()) { return cmStrCat("$<$<CONFIG:", config, ">:", expr, ">"); } return std::string(expr); @@ -2773,8 +2773,8 @@ void cmLocalGenerator::CopyPchCompilePdb( std::vector<std::string> no_byproducts; std::vector<std::string> outputs; - outputs.push_back( - cmStrCat(target_compile_pdb_dir, pdb_prefix, ReuseFrom, ".pdb")); + outputs.push_back(configGenex( + cmStrCat(target_compile_pdb_dir, pdb_prefix, ReuseFrom, ".pdb"))); if (this->GetGlobalGenerator()->IsVisualStudio()) { this->AddCustomCommandToTarget( |