Skip to content
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

vcpkg uses UWP triplet in WinUI on desktop projects #15685

Closed
sylveon opened this issue Jan 16, 2021 · 2 comments
Closed

vcpkg uses UWP triplet in WinUI on desktop projects #15685

sylveon opened this issue Jan 16, 2021 · 2 comments

Comments

@sylveon
Copy link
Contributor

sylveon commented Jan 16, 2021

Describe the bug
When creating a WinUI on Desktop project, vcpkg will use the arch-uwp triplet instead of arch-windows triplet.

Environment

  • OS: Windows
  • Compiler: Visual Studio 16.9 Preview 2

To Reproduce
Steps to reproduce the behavior:

  1. Create a new C++ WinUI on desktop project (using https://marketplace.visualstudio.com/items?itemName=Microsoft-WinUI.WinUIProjectTemplates)
  2. Run vcpkg install fmt:x86-windows
  3. Try to #include <fmt/format.h> in the project
  4. Observe include error

Expected behavior
vcpkg looks up in the desktop triplet for libraries.

Additional context
The file isn't found because vcpkg thinks it is in a UWP project when it is not in a UWP project, so it will lookup for libraries in the UWP triplet, in which fmt isn't installed.

@soumyamahunt
Copy link
Contributor

I think this is related to #15409, there already is a PR #15410 that should fix this issue.

@sylveon
Copy link
Contributor Author

sylveon commented Jan 16, 2021

That indeed seems like it, thanks!

@sylveon sylveon closed this as completed Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants