You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to cross-compile a binary which uses the cURL VCPKG port, on a 32-bit target using a 64-bit host.
Hello,
The cURL port on VCPKG has a cross-compiling bug. The file CURLConfigVersion.cmake uses CMAKE_SIZEOF_VOID_P to determine suitability of platform but in a cross-compiling environment this will compare a per-host value with a per-target value which is not correct.
For example, if you are trying to cross-compile a binary which uses the cURL VCPKG port, on Android 32-bit ABIs using a Ubuntu x64 as a host, the find_package(CURL CONFIG REQUIRED) will fail with the following error:
Could not find a configuration file for package "curl" that is compatible with requested version ""
The text was updated successfully, but these errors were encountered:
Operating system
All
Steps to reproduce the behavior
Hello,
The cURL port on VCPKG has a cross-compiling bug. The file CURLConfigVersion.cmake uses CMAKE_SIZEOF_VOID_P to determine suitability of platform but in a cross-compiling environment this will compare a per-host value with a per-target value which is not correct.
For example, if you are trying to cross-compile a binary which uses the cURL VCPKG port, on Android 32-bit ABIs using a Ubuntu x64 as a host, the find_package(CURL CONFIG REQUIRED) will fail with the following error:
Could not find a configuration file for package "curl" that is compatible with requested version ""
The text was updated successfully, but these errors were encountered: