This check was added for vcpkg
, given how it packages Boost. However, we don’t need to run the check for other platforms, and it’s quite slow. So, scope it to just vcpkg
.
On my machine, this reduces the time to run time cmake -B build
from ~12 seconds, to ~6 seconds.
Fixes: #30787.