Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost integration in Visual Studio 2010
From: Sam Fisher (infest21h_at_[hidden])
Date: 2013-07-18 05:53:35


On 17.07.2013 10:19, Georg.Kellerer_at_[hidden] wrote:
Hi,

> Hi,
>
> we’re using boost inour projects and all works fine. Our projects are
> standing under version control in a subversion repository. Our problem
> is that every developper had installed boost in a diferent place. Is
> their a way to get the reference to boost in a user speciffic
> configuration place? At the moment we have a fix path c:\dev\boost… but
> that does not fit for every developpers machine.
>

Prepare a property file (boost.props) looking like this:

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
     <IncludePath>$(IncludePath);$(BOOST_ROOT_PATH)</IncludePath>
     <LibraryPath
Condition="'$(Platform)'=='Win32'">$(LibraryPath);$(BOOST_ROOT_PATH)\stage\lib</LibraryPath>
     <LibraryPath
Condition="'$(Platform)'=='x64'">$(LibraryPath);$(BOOST_ROOT_PATH)\stage64\lib</LibraryPath>
   </PropertyGroup>
</Project>

then include it into the project file (vcxproj)

<ImportGroup Label="PropertySheets">
   <Import Project="$(SolutionDir)boost.props"
Condition="exists('$(SolutionDir)boost.props')" />
</ImportGroup>

each developer will have to set his own value for environment variable
BOOST_ROOT_PATH


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net