首页 > 解决方案 > 如何使用 vcpkg 跳过依赖项?

问题描述

我正在尝试安装cgal并收到无法安装依赖vcpkg项的错误,因为它的站点不可用。我可以跳过这个依赖吗?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

标签: c++dependenciescgalmpfrvcpkg

解决方案


Build-Depends可以使用文件中的字段来控制依赖关系CONTROL。在你的情况下ports\cgal\CONTROL

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

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


推荐阅读