frerich / clcache

A compiler cache for MSVC, much like ccache for gcc
Other
325 stars 83 forks source link

Update Visual Studio Integration Docs #362

Open rioki opened 5 years ago

rioki commented 5 years ago

As per the last comment in #18 there is a less intrusive way to integrate clcache.

Each vcxproj file should include "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" In this props file you can add the following snipet (when installed with chocolatey):

<PropertyGroup>
    <CLToolExe>clcache.exe</CLToolExe>
    <CLToolPath>C:\ProgramData\chocolatey\bin\</CLToolPath>
    <TrackFileAccess>false</TrackFileAccess>
</PropertyGroup> 

The will neither mean you need to tamper with your Visual Studio installation or your project files.

It would be nice, if the documentation can be updated accordingly.