mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 10:48:38 -06:00
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.
This commit is contained in:
@@ -2698,8 +2698,8 @@ void cmLocalGenerator::CopyPchCompilePdb(
|
|||||||
cmStrCat(target->GetLocalGenerator()->GetCurrentBinaryDirectory(), "/",
|
cmStrCat(target->GetLocalGenerator()->GetCurrentBinaryDirectory(), "/",
|
||||||
target->GetName(), ".dir/");
|
target->GetName(), ".dir/");
|
||||||
|
|
||||||
const std::string copy_script =
|
const std::string copy_script = cmStrCat(
|
||||||
cmStrCat(target_compile_pdb_dir, "copy_idb_pdb.cmake");
|
target_compile_pdb_dir, "copy_idb_pdb_", config.c_str(), ".cmake");
|
||||||
cmGeneratedFileStream file(copy_script);
|
cmGeneratedFileStream file(copy_script);
|
||||||
|
|
||||||
file << "# CMake generated file\n";
|
file << "# CMake generated file\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user