Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a good reason why the vcpkg cmake toolchain is not adding (/debug)/bin to PATH? #7826

Closed
Neumann-A opened this issue Aug 22, 2019 · 0 comments
Assignees
Labels
category:question This issue is a question

Comments

@Neumann-A
Copy link
Contributor

So I stumbled across an issue where the path <vcpkginstalledtriplet>(/debug)/bin is required to be on the path. It basically always happens if some tool is build by a port which is than used by another port.
Current workarounds are:

  • vcpkg_copy_tool_dependencies which copies all dependencies into the tool directory (bad since it duplicates shared libraries, maybe even multiple times -> see e.g. Qt)
  • ADD_BIN_TO_PATH option in vcpkg_build_cmake. (only works for internal build cmake projects)

From my point of view the only correct solution is to have the toolchain file add the /bin folder to the path variable (if it is not already there).

(Another solution: drop the separation of executables and dlls)

@Neumann-A Neumann-A added the category:question This issue is a question label Aug 22, 2019
@microsoft microsoft locked and limited conversation to collaborators Jun 9, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants