使用boost时如何在Visual Studio中设置目录?

发布于 2024-08-26 17:53:36 字数 390 浏览 0 评论 0原文

我已将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

莫多说 2024-09-02 17:53:36

如何在每台开发人员的计算机上添加环境变量:

CL=-I<...the_boost_directory...>

即在您的计算机上:

CL=-IThirdparty.Boost

MS 编译器将环境变量 CL 的值添加到其命令行,因此这应该可以满足您的要求。

What about adding an environment variable on each of your developer's machines:

CL=-I<...the_boost_directory...>

i.e. on your machine:

CL=-IThirdparty.Boost

The MS compiler adds the value of the environment variable CL to its command line, so this should do the trick for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文