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

Use vcpkg in a Visual Studio project without user-wide integration #38763

Closed
T-Dimov opened this issue May 16, 2024 · 2 comments
Closed

Use vcpkg in a Visual Studio project without user-wide integration #38763

T-Dimov opened this issue May 16, 2024 · 2 comments
Labels
category:question This issue is a question

Comments

@T-Dimov
Copy link

T-Dimov commented May 16, 2024

          We don't have enough information to solve this issue, unfortunately; if you have any more information to help us solve this, please reopen!

Originally posted by @JackBoosY in #18868 (comment)

I think I have the same problem. Our software uses libcurl by just copying its headers and library files into our source tree and referencing said copies. For a side project I installed cpr trough vcpkg which also brought along libcurl. If I integrate vcpkg user-wide the main software fails to link because now it's able to find 2 copies of libcurl and can't decide which one to link. Modifying it is not an option. I'd like to integrate vcpkg for a single solution/project.

@StarGate-One
Copy link
Contributor

See if vcpkg integrate project can do what you need.

->vcpkg help integrate
Synopsis: Integrates vcpkg with machines, projects, or shells
Examples:
vcpkg integrate install
Makes installed packages available user-wide. Requires admin privileges on
first use
vcpkg integrate remove Removes user-wide integration

vcpkg integrate project
Generates a referencing NuGet package for individual Visual Studio project
use. Windows-only

@JonLiu1993 JonLiu1993 added the category:question This issue is a question label May 17, 2024
@T-Dimov
Copy link
Author

T-Dimov commented May 17, 2024

According to the documentation NuGet isn't recommended. Admittedly, it is going to be Windows-only anyway but I think there should be an easy cross-platform way to integrate into a project just like vcpkg integrate install does user-wide.

@JonLiu1993 JonLiu1993 removed their assignment Jun 13, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 13, 2024
@JonLiu1993 JonLiu1993 converted this issue into discussion #39270 Jun 13, 2024

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