How to use non-default compiler for dependency compilation in vcpkg manifest mode? #40007
Replies: 1 comment
-
You have to create and use a custom triplet and set https://learn.microsoft.com/en-us/vcpkg/users/triplets#vcpkg_chainload_toolchain_file inside it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My system is macOS, and I want to use a dependency that can be compiled with Clang (from homebrew), but not with AppleClang. vcpkg uses AppleClang for dependency compilation by default, therefore I want to change this behavior.
What I tried is: create
clang-toolchain.cmake
file:And pass file path as
VCPKG_CHAINLOAD_TOOLCHAIN_FILE
, like:However, installation still yields errors and log message says I'm still using AppleClang 15.
Beta Was this translation helpful? Give feedback.
All reactions