CMake and Visual Leak Detector

297 views
Skip to first unread message

Bret McKee

unread,
May 29, 2015, 10:33:06 PM5/29/15
to open-phd...@googlegroups.com
I'm making progress with cmake, but on a fresh start I get errors because it can't find visual leak detector.  I know how to fix it manually, but before I do that, I wanted to make sure that cmake should not have set it up for me automatically...

Thanks,

Bret

bw_msgboard

unread,
May 29, 2015, 11:37:32 PM5/29/15
to Bret McKee, open-phd...@googlegroups.com

Yes, I thumped my head into this wall as well.  In my case, it’s because I’m running Visual Studio Express rather than the ‘Community’ or ‘Full’ versions of VS.  Andy confirmed that with one of his systems, as well, which was also running only the Express version.  In theory, the VLD installer is supposed to add entries in a file called Microsoft.Cpp.Win32.user.props – those entries add the VLD path into the AdditionalIncludeDirectories property of VS.  But this doesn’t always happen – in which case, VS won’t look in the VLD install directory.  The .props file is located in the AppData\Local\Microsoft\MSBuild\v4.0 directory on a Win7 system.  A correctly formed .props file looks like this:

 

<?xml version="1.0" encoding="utf-8"?>

<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

            <ImportGroup Label="PropertySheets">

            </ImportGroup>

            <PropertyGroup Label="UserMacros"/>

            <PropertyGroup/>

            <ItemDefinitionGroup><ClCompile><AdditionalIncludeDirectories>C:\Program Files (x86)\Visual Leak Detector\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories></ClCompile><Link><AdditionalLibraryDirectories>C:\Program Files (x86)\Visual Leak Detector\lib\Win32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories></Link><Lib><AdditionalLibraryDirectories>C:\Program Files (x86)\Visual Leak Detector\lib\Win32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories></Lib></ItemDefinitionGroup>

            <ItemGroup/>

</Project>

 

I think this will need to be fixed somehow.  In the meantime, using the above info should get you going.  I’m also attaching a copy of my system’s version of the file although I don’t know if there can be local variations.

 

Good luck.

Bruce

 


--
You received this message because you are subscribed to the Google Groups "Open PHD Guiding" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-phd-guidi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Microsoft.Cpp.Win32.user.props
Reply all
Reply to author
Forward
0 new messages