mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 17:18:18 +00:00
The install handler runs `cmake --install -j` in parallel only when the CMakeFiles/InstallScripts.json index is at least as new as CMakeFiles/cmake.check_cache. Both files are written during a single generate step, so any ordering between them is sub-second. On filesystems that do not order two near-simultaneous writes by their sub-second modification time (e.g. NFS on AIX), a fresh index can appear older than the marker and the install spuriously falls back to serial. Compare the two modification times at whole-second resolution. This ignores sub-second jitter within one generate step while still detecting a genuinely stale index from an older CMake reconfigure, which is always at least a configure run older. Fixes: #27919