-
|
I'm using vcpkg with the CMake toolchain on macOS, and I'm getting a large number of linker warnings like: ld: warning: object file (.../libcurl-d.a[157](sectransp.c.o)) was built for newer 'macOS' version (15.0) than being linked (13.3)I'm targeting macOS 13.3, but some dependencies like libcurl seem to be built for macOS 15.0. I've tried several things but can’t get vcpkg to build these libraries with the correct deployment target. Attempts to Fix
Question Is a custom triplet required, or is there a better way to enforce this globally for both vcpkg and CMake? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In my experience, if you have to ask "is a custom triplet required to do x", the answer is always yes. In my project, I create a custom triplet, and have it load a build-time file, like so:
And then generate that vcpkg variables file like this:
Which is called when using vcpkg's toolchain file |
Beta Was this translation helpful? Give feedback.
In my experience, if you have to ask "is a custom triplet required to do x", the answer is always yes.
In my project, I create a custom triplet, and have it load a build-time file, like so:
arm64-osx.cmakeAnd then generate that vcpkg variables file like this:
generate_vcpkg_toolchain_variables.cmake