# vcpkg_target_triplet is envirnoment variable with triplet name
vcpkg remove package:%vcpkg_target_triplet% --recurse
# vcpkg_target_triplet is envirnoment variable with triplet name
vcpkg install package:%vcpkg_target_triplet%
For ports with vcpkg_from_github
- uninstall package
- edit the portfile (e.g.
portfile.cmake
, in `ports/package_name/)- change
vcpkg_from_github
REF to commit or tag - change SHA512 to 0
- change
- try to install package
- it will complain about SHA not matching
- and will output correct SHA
- copy correct SHA to portfile
- install again
The vcpkg_from_github
in port file looks like that:
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO github_user_or_org/github_repo
REF commit_or_tag
SHA512 long_string_of_decimals
HEAD_REF branch
)