diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2021-11-08 15:35:43 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2021-11-08 15:51:18 (GMT) |
commit | 95fa27d94df39fda5463c6644ff78c364dd4e47f (patch) | |
tree | 2fae323d4e7718ada5db05fcf79046fd32d07f76 /Source/cmLocalGenerator.cxx | |
parent | e137ce0a5243b923ab5fb0be6f5f1bdc9ecf805d (diff) | |
download | CMake-95fa27d94df39fda5463c6644ff78c364dd4e47f.zip CMake-95fa27d94df39fda5463c6644ff78c364dd4e47f.tar.gz CMake-95fa27d94df39fda5463c6644ff78c364dd4e47f.tar.bz2 |
PCH: Fix REUSE_FROM when Debug and RelWithDebInfo configs differ
If the Debug configuration contains `/ZI` but the RelWithDebInfo doesn't
then the copy_pdb_idb.cmake script will cause problems due to the fact
that it was common for both configurations but they are incompatible
with each other.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 9b6b9abe..468ce5c 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2698,8 +2698,8 @@ void cmLocalGenerator::CopyPchCompilePdb( cmStrCat(target->GetLocalGenerator()->GetCurrentBinaryDirectory(), "/", target->GetName(), ".dir/"); - const std::string copy_script = - cmStrCat(target_compile_pdb_dir, "copy_idb_pdb.cmake"); + const std::string copy_script = cmStrCat( + target_compile_pdb_dir, "copy_idb_pdb_", config.c_str(), ".cmake"); cmGeneratedFileStream file(copy_script); file << "# CMake generated file\n"; |