-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Unable to build any package due to invalid path to vcpkg (missing platform in triplet name) #12086
Comments
This is one of the other "odd behaviors" I saw in issue #12062 . It is somehow caused by commit 1451450 . What is even more odd/interesting is that this doesn't always happen in VS2015. I think it may be dependent upon VS2015 bugfix version, as I see it in VS2015 version 14.0.25425.01 Update 3, but not in VS2015 version 14.0.25431.01 Update 3. The former defaults the triplet to I don't know how to bugfix upgrade a VS2015 install (running the latest VS2015 Update 3 installer just told me the update was already installed). As a workaround, you could try figuring out how to install the bugfix update (perhaps just remove then reinstall VS2015 Update 3 with the latest installer), or you can clone vcpkg and then checkout before the problematic commit with
from the root directory before building it. |
@BillyONeal @Neumann-A Could you take a look? Thanks. |
This PR also renames the VcpkgUserTriplet MSBuild variable to VcpkgTriplet to minimize user confusion compared to previous practice and documentation.
This PR also renames the VcpkgUserTriplet MSBuild variable to VcpkgTriplet to minimize user confusion compared to previous practice and documentation. Co-authored-by: Robert Schumacher <[email protected]>
Close this issue via #12257 merged. |
Describe the bug
Unable to build a project which uses any vcpkg library due to incorrect path to vcpkg headers/libs
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors during compilation
Additional context$(VcpkgUserTriplet) is initialized as $ (PlatformTarget)-$(VcpkgOSTarget). In solution $(PlatformTarget) seems to be empty when usertriplet is calculated. The workaround is to specify $ (VcpkgPlatformTarget) variable ( the same way it is defined in vcpkg.props) and use it instead of $(PlatformTarget)
It looks like the problem is in $(VCPKG_ROOT)\scripts\buildsystems\msbuild\vcpkg.targets.
The default
The text was updated successfully, but these errors were encountered: