When installing libraries, vcpkg raises this error:
Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.
Ref: https://github.com/microsoft/vcpkg-tool/blob/2022-02-11/src/vcpkg.cpp#L61
Originally, I was hoping to use the detect_architecture()
function in VCEnvironment.cmake
to solve this problem, but it turned out detect_architecture
cannot detect the ARCH on ARM. Here is a similar issue: https://github.com/microsoft/vcpkg/discussions/17832
For cmake < 3.17, CMAKE_HOST_SYSTEM_PROCESSOR
uses the command uname -p
to get the result but it simply returns "unknown" on ARM: https://cmake.org/cmake/help/v3.16/variable/CMAKE_HOST_SYSTEM_PROCESSOR.html
An unrelated suggestion is that I would like to move the inclusion of Utilities.cmake
outside of the file VCEnvironment.cmake
, since the functions in Utilities.cmake
are no longer exclusively used by that single file.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too