mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
PCH: Avoid unnecessary 30s delay on MSBuild Generator with REUSE_FROM
Fix logic added by commit 1f791eb160 (Multi-Ninja: Fix reusable PCHs for
MSVC, 2020-05-24, v3.18.0-rc1~72^2) to avoid an unnecessary delay.
Fixes: #21054
This commit is contained in:
@@ -2789,7 +2789,7 @@ void cmLocalGenerator::CopyPchCompilePdb(
|
||||
}
|
||||
file << " break()\n"
|
||||
<< " endif()\n";
|
||||
file << " else()\n"
|
||||
file << " elseif(NOT EXISTS \"" << from_file << "\")\n"
|
||||
<< " execute_process(COMMAND ${CMAKE_COMMAND}"
|
||||
<< " -E sleep 1)\n"
|
||||
<< " endif()\n";
|
||||
|
||||
Reference in New Issue
Block a user