-
I am preparing a dummy project configuration to try out vcpkg. I have a simple app and two C++ projects that I succesfully configured using vcpkg using Ninja and MSBuild on Windows. Since the intention is to use vcpkg as a proper package manager in our company, a second step I wanted to tryout is the cross-compilation functionality. I fail to get it working, and I feel I am missing information. The intention is to get my application and the two dependent libraries compiled for Xbox Scarlett, since I do see support for that in the toolchains and in the supplied community scripts as well. I have modified my
And I run the build by calling When I run this I am missing some important CMake variables, like: These are defined inside a triplet file supplied by the community Clearly I am missing something here. What is the correct way of generating my project with a different toolchain? Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
you are expected to have your own toolchain in VCPKG_CHAINLOAD_TOOLCHAIN_FILE not one from vcpkg. The one from vcpkg is for internal use. If you want to use it externally you have to define all variables in your preset which this internal toolchain expects. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
AFAICT you must set |
Beta Was this translation helpful? Give feedback.
-
Hey all, Thank you for your replies! After some digging in the vcpkg-tool code and reading the vcpkg cmake file, I found the problem I was having.
|
Beta Was this translation helpful? Give feedback.
Hey all,
Thank you for your replies! After some digging in the vcpkg-tool code and reading the vcpkg cmake file, I found the problem I was having.
I had two issues: