bkaradzic / bgfx.cmake

CMake build scripts for bgfx. Released under public domain.
Creative Commons Zero v1.0 Universal
199 stars 109 forks source link

tools: for vcpkg hint, use host install path #228

Closed bwrsandman closed 3 months ago

bwrsandman commented 3 months ago

Replace best-guess packages location with the real host and installation path.

This solves an issue with vcpkg with cross compiling from apple silicon (arm64) host and any non-x64 host. A change to vcpkg to pass on the CURRENT_HOST_INSTALLED_DIR with -DVCPKG_CURRENT_HOST_INSTALLED_DIR=${CURRENT_HOST_INSTALLED_DIR} is needed.