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:
Cristian Adam
2020-08-05 14:05:56 +02:00
committed by Brad King
parent 63a65baf4c
commit ef97fbe6c2

View File

@@ -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";