|
Boost Users : |
Subject: Re: [Boost-users] linking and including in visual studio
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2016-04-27 16:44:30
On Wed, Apr 27, 2016 at 1:17 AM, degski <degski_at_[hidden]> wrote:
> Maybe thiis is not fully helpfull to the above, but I do change the props
> file in:
You're right, that is interesting. That works until you need to
rebuild your dev environment. Bottom line is, the settings,
directories, etc, should ultimately travel with the project.
> C:\Users\YOUR
> USERNAME\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.x64.user.props
> (other targets in the same folder)
>
> to something like the below:
>
> <?xml version="1.0" encoding="utf-8"?>
> <Project DefaultTargets="Build" ToolsVersion="4.0"
> xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
> <ImportGroup Label="PropertySheets">
> </ImportGroup>
> <PropertyGroup Label="UserMacros" />
> <PropertyGroup>
>
> <IncludePath>$(VC_X64_INCLUDE);$(BOOST_ROOT);$(IncludePath)</IncludePath>
> <LibraryPath>$(VC_X64_LIB);$(LibraryPath)</LibraryPath>
>
> <ExecutablePath>$(VC_X64_DLL);$(VC_X64_EXE);$(ExecutablePath)</ExecutablePath>
> <OutDir>$(Platform)\$(Configuration)\</OutDir>
> <IntDir>$(Platform)\$(Configuration)\</IntDir>
> </PropertyGroup>
> <ItemDefinitionGroup>
> <ClCompile>
> <WarningLevel>Level4</WarningLevel>
> <Optimization>MaxSpeedHighLevel</Optimization>
> <Parallelization>true</Parallelization>
> <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
> <UseProcessorExtensions>HOST</UseProcessorExtensions>
> <ErrorLimit>3</ErrorLimit>
> </ClCompile>
> <Link>
>
> <OutputFile>$(Platform)\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
> </Link>
> </ItemDefinitionGroup>
> <ItemGroup />
> </Project>
>
> VC_X64_INCLUDE, etc. is env-variable that points to the include folder of my
> libs (organised linux-style), so I don't need to edit my projects in case I
> move the libraries folder.
>
> Any new project will now automatically include those defaults or (in case of
> an exisiting project) will default to them, iff you select the default
> settings in the IDE. Obviously one can add other options to the XML-file.
>
> degski
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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