diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2020-08-05 12:05:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-05 19:52:05 (GMT) |
commit | ef97fbe6c203e6504cae9282c3b826d9e4d84147 (patch) | |
tree | 0ddd54343fd276d6c89971ea3b404fee7348c515 /Source/cmLocalGenerator.cxx | |
parent | 63a65baf4c343c73b2142078ef0045d3711dea1d (diff) | |
download | CMake-ef97fbe6c203e6504cae9282c3b826d9e4d84147.zip CMake-ef97fbe6c203e6504cae9282c3b826d9e4d84147.tar.gz CMake-ef97fbe6c203e6504cae9282c3b826d9e4d84147.tar.bz2 |
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
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index e26dc94..c15ca7c 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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"; |