I downloaded a C++ project from GitHub that uses Visual Studio. The main solution file, “all.sln”, contains several solutions, and each solution includes multiple projects. Some of these projects require the Boost library.
I have already built Boost and placed it in D:Githubboost_1_70_0.
Is there a way to register the Boost library’s header and library paths globally in Visual Studio 2019/2022, so that I don’t have to manually add the Boost header and library paths to each project individually?
I want to be able to include Boost headers like this without additional configuration:
#include <boost/filesystem.hpp>
Any advice on how to achieve this would be greatly appreciated.
I tried in 2019 and 2022.
Electro Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I think there is no such possibility directly. You can try to create a custom project template where you will add the libraries you need.
https://learn.microsoft.com/en-us/visualstudio/ide/how-to-create-project-templates?view=vs-2022
Nikolaj D. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.