My question is, how to integrate vcpkg in linux with cross build toolchain, as well as sysroot? example:
- build machine is
fedora30
- cross build toolchain is
x86_64-centos7-gnu
from https://github.com/microsoft/vcpkg quickstart says:
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
PS> .\bootstrap-vcpkg.bat
Linux:~/$ ./bootstrap-vcpkg.sh
On my machine I have gcc 9.1 installed which is detected by vcpkg
's bootstrap.sh and work fine;
Meanwhile, I built a toolchain for crossbuilding, which sits in $HOME/cross/x64_86-centos7-linux-gnu/
How can I setup another vcpkg
dir tree which uses that perticular toolchain?
By 'use', I mean vcpkg and all its packages should be compiled by that toolchain, and my projects which use vcpkg's toolchain_file '$vcpkg_home/scripts/buildsystems/vcpkg.cmake' should all have that toolchain as $CC and build toolset?