如何跳过对 vcpkg 的依赖?

How to skip dependency with vcpkg?

本文关键字:依赖 vcpkg 何跳过      更新时间:2023-10-16

我正在尝试使用vcpkg安装cgal并收到无法安装mpfr依赖项的错误,因为它的站点不可用。我可以跳过此依赖项吗?

Additional packages (*) will be modified to complete this operation.
Starting package 1/88: mpfr:x86-windows
Building package mpfr[core]:x86-windows...
-- Downloading http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz...
-- Downloading http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz... Failed. Status: 7;"Couldn't connect to server"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:175 (message):
Failed to download file.
If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
variables to "https://user:password@your-proxy-ip-address:port/".
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

可以使用CONTROL文件中Build-Depends字段来控制依赖项。 在您的情况下portscgalCONTROL

有关更多信息;https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/control-files.md#control-files

但是,您删除此依赖项很可能无法构建cgal