vcpkg 下载慢非常令人头痛,下面是一位 github 用户的抱怨,非常真实!
The download and compilation time of vcpkg is relatively long. So during this waiting period, I would rather go play a game, have a cup of coffee or do some other work. But, but, but! ! !
When the network is not good, vcpkg will always interrupt because it has not downloaded the complete package, which is very annoying! ! ! This makes me have to stare at the screen all the time, watching vcpkg from downloading to compiling and installing, in case any package download fails and the compilation is interrupted.
(引自 github issues #12811)
对于vcpkg 下载慢而导致编译中断,网上大多数方法都是说把没下载完的依赖包的链接复制出来,自己在浏览器下载,然后放到 download 目录下。但是有些包的依赖包很多,这样做非常麻烦。下面讲两种方便可行的方法: