简体   繁体   English

Vcpkg对克隆的项目没有影响

[英]Vcpkg has no effect on cloned project

I have a github repository I created using libraries installed with vcpkg. 我有一个使用vcpkg安装的库创建的github存储库。 Now when I switch to another machine with vcpkg installed with all libraries, it can't find the include directories. 现在,当我切换到安装了所有库的vcpkg的另一台计算机时,它找不到包含目录。

When I create a new project in Visual Studio everything works fine and all the includes are working, but if I clone the github repository, it can't include any of the libraries. 当我在Visual Studio中创建一个新项目时,一切正常,所有包含项均正常运行,但是如果我克隆github存储库,它将无法包含任何库。

I would like to be able to use the vcpkg installed libraries with cloned projcets as well if that's possible. 如果可能,我也希望能够将vcpkg安装的库与克隆的项目一起使用。

经过两天与vcpkg的斗争,尝试导出NuGet包并编辑.vcxproj文件,结果证明我已经安装了x86版本的库,而我只需要在Visual Studio中更改为x86。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM