-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need VCPKG_FORCE_SYSTEM_BINARIES env for installing vcpkg dependencies on ARM #84
Comments
@aminya No, VCPKG uses cpp for detecting the ARCH: https://github.com/microsoft/vcpkg-tool/blob/2022-02-24/src/vcpkg.cpp#L257-L266 cmake >=3.17.0 fixed this problem by using the result of And this is what I'm doing in my configuration:
For the placement of including the |
When installing libraries, vcpkg raises this error:
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 inVCEnvironment.cmake
to solve this problem, but it turned outdetect_architecture
cannot detect the ARCH on ARM. Here is a similar issue: microsoft/vcpkg#17832For cmake < 3.17,
CMAKE_HOST_SYSTEM_PROCESSOR
uses the commanduname -p
to get the result but it simply returns "unknown" on ARM: https://cmake.org/cmake/help/v3.16/variable/CMAKE_HOST_SYSTEM_PROCESSOR.htmlAn unrelated suggestion is that I would like to move the inclusion of
Utilities.cmake
outside of the fileVCEnvironment.cmake
, since the functions inUtilities.cmake
are no longer exclusively used by that single file.Upvote & Fund
I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered: