Skip to content

[vcpkg] fix cmake paths in tags.#13710

Closed
Neumann-A wants to merge 2 commits intomicrosoft:masterfrom
Neumann-A:fix_tag_paths
Closed

[vcpkg] fix cmake paths in tags.#13710
Neumann-A wants to merge 2 commits intomicrosoft:masterfrom
Neumann-A:fix_tag_paths

Conversation

@Neumann-A
Copy link
Copy Markdown
Contributor

Currently you cannot do the following:
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/x64-windows-llvm.toolchain.cmake")
since vcpkg copies the contents of the triplet into the tag file resulting in wrong paths e.g.:
VCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/src/AllProjects/vcpkg/buildtrees/x64-windows-llvm.toolchain.cmake

This PR fixes the behavior by simply including the triplet instead of copying it resulting in the correct paths:
VCPKG_CHAINLOAD_TOOLCHAIN_FILE=E:/src/AllProjects/my-vcpkg-triplets/x64-windows-llvm.toolchain.cmake
making it possible to relocated toolchain files and triplets.

@JackBoosY JackBoosY self-assigned this Sep 25, 2020
@JackBoosY JackBoosY added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Sep 25, 2020
@Neumann-A Neumann-A closed this Nov 19, 2020
@Neumann-A Neumann-A deleted the fix_tag_paths branch April 24, 2021 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants