Describe the bug
Unable to build a project which uses any vcpkg library due to incorrect path to vcpkg headers/libs
Environment
- OS: Windows
- Visual Studio 2015
To Reproduce
Steps to reproduce the behavior:
- Clone vcpkg, build it
- Install any package
- Make integrate install
- Run visual studio, create empty project, try to use the package (e.g. include some header)
Expected behavior
No errors during compilation
Additional context
It looks like the problem is in $(VCPKG_ROOT)\scripts\buildsystems\msbuild\vcpkg.targets.
The default $(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)
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