mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
PCH: Fix regression in REUSE_FROM that copies the .pdb too often
Since commit 99bdf2ae16 (cmLocalGenerator: add PDB copying dependency on
its script, 2025-06-16, v4.2.0-rc1~481^2~8) the copy is repeated
whenever the copying script is updated. Avoid updating the copy script
timestamp when it does not change.
Fixes: #27608
This commit is contained in:
@@ -2914,6 +2914,7 @@ void cmLocalGenerator::CopyPchCompilePdb(
|
||||
std::string const copy_script = cmStrCat(target->GetSupportDirectory(),
|
||||
"/copy_idb_pdb_", config, ".cmake");
|
||||
cmGeneratedFileStream file(copy_script);
|
||||
file.SetCopyIfDifferent(true);
|
||||
|
||||
file << "# CMake generated file\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user