Replies: 2 comments 4 replies
-
Also |
Beta Was this translation helpful? Give feedback.
-
The documentation seems to describe how to create a customized triplet. include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake) OR set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "Vcpkg toolchain file") And by default vcpkg will select a triplet for you Now if you want to switch to an alternate triplet which is non-default set(VCPKG_TARGET_TRIPLET "x64-windows-static-md")
include(${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake) And after that
However if you want both
but we want it to pick up So instead I'm proposing here that instead of
and as long as the |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Allow mix and match 2 triplets (for eg x64-windows-static-md and x64-windows) in a single environment
There's a use case where I need to link with a few ports statically and others dynamically (because they dont support static-linkages)
The problem however is VCPKG doesnt understand multiple triplets .
I can only specify one triplet in VCPKG_TRIPLET to have it look for packages in.
Proposed solution
Allow VCPKG_TRIPLET to be a list. The first is the primary triplet and if a port isnt found in the primary triplet. It can fallback to search the next one in the list.
Describe alternatives you've considered
Current workarounds rely upon manually searching using find_library and find_paths for headers and libs and manually setting up the cmake targets in case we need binaries and packages from the non-primary triplet
Additional context
Beta Was this translation helpful? Give feedback.
All reactions