使用boost时如何在Visual Studio中设置目录?
我已将 boost 引入到我们的代码库中,在我的计算机上创建了一个名为 Thirdparty.Boost 的 boost 目录,并将其添加为我的 Visual Studio 设置中的附加包含目录,一切都很好。
不过,我现在想检查我的更改,以便团队的其他成员可以获取它们。为了构建代码,他们需要像我一样设置 boost(问题 1)。此外,我们还有一个构建服务器,需要更改(问题 2)。我有一种方法可以将 boost 分发给每个人,包括构建服务器,所以这不是问题,
我需要一种在不更改 Visual Studio 中的默认设置的情况下引用 boost 目录的方法。你为什么不在项目层面上改变它,我听到你哭了?该解决方案有超过 200 个项目,需要进行大量更改。
我只是想知道是否还有其他方法?
干杯 富有的
I have introduced boost to our code base, on my machine I created a boost directory called Thirdparty.Boost and added that as an additional include directory in my Visual Studio setting, all is fine.
However I now want to check in my changes, so the rest of the team can get them. Inorder to build the code they would need to setup boost as I have (problem number 1). In addition we have a build server, which will need changing (problem 2). I have a way of distributing boost to everyone including the build server, so that's not a problem
I need a way of referring to the boost directory without changing the default settings in Visual Studio. Why don't you change it on a project level I hear you cry? The solution has over 200 projects, which would require a lot of changes.
I just wondered if there was another way?
Cheers
Rich
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如何在每台开发人员的计算机上添加环境变量:
即在您的计算机上:
MS 编译器将环境变量 CL 的值添加到其命令行,因此这应该可以满足您的要求。
What about adding an environment variable on each of your developer's machines:
i.e. on your machine:
The MS compiler adds the value of the environment variable CL to its command line, so this should do the trick for you.