<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 22, 2015 at 9:57 AM, Tom Kacvinsky <span dir="ltr"><<a href="mailto:tom.kacvinsky@vectorcast.com" target="_blank">tom.kacvinsky@vectorcast.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Sep 22, 2015 at 9:41 AM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/22/2015 09:25 AM, Tom Kacvinsky wrote:<br>
> I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008<br>
[snip]<br>
> whether listing the object files or compiling from source, there is<br>
> the cl option to create PDB debugging information.<br>
<br>
Please try with CMake 3.1 or higher:<br>
<br>
 <a href="http://www.cmake.org/Bug/view.php?id=14763" rel="noreferrer" target="_blank">http://www.cmake.org/Bug/view.php?id=14763</a><br>
<br>
There is a distinction between compiler-generated and linker-generated<br>
.pdb files.  See these target properties to configure each:<br>
<br>
 <a href="http://www.cmake.org/cmake/help/v3.3/prop_tgt/COMPILE_PDB_NAME.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.3/prop_tgt/COMPILE_PDB_NAME.html</a><br>
 <a href="http://www.cmake.org/cmake/help/v3.3/prop_tgt/COMPILE_PDB_OUTPUT_DIRECTORY.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.3/prop_tgt/COMPILE_PDB_OUTPUT_DIRECTORY.html</a><br>
 <a href="http://www.cmake.org/cmake/help/v3.3/prop_tgt/PDB_NAME.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.3/prop_tgt/PDB_NAME.html</a><br>
 <a href="http://www.cmake.org/cmake/help/v3.3/prop_tgt/PDB_OUTPUT_DIRECTORY.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.3/prop_tgt/PDB_OUTPUT_DIRECTORY.html</a><span><font color="#888888"><br></font></span></blockquote><div><br></div></span><div>I will give 3.3.2 a try.  In the meantime, I am getting a PDB file by listing the source files for the add_library(commoncpp SHARED <srcs> <def file>), but when I run in the visual studio debugger, it says there are no symbols loaded for the DLL.  The PDB path recorded in the DLL points to the right PDB file, but the PDB file typically is larger than the DLL. but in this case it is not.  Is that because I am not getting all of the debug information, and a later version of cmake will guarantee that we get the right information? <br></div></div><br></div></div></blockquote><div>Ah yes, I was doing a release build, so link was not invoked with /debug.  No wonder my PDB files were so small. For the moment, I just manually created the debug PDB so I can debug my application.  Right now, having two builds (debug and release) doesn't fit our workflow, so that will have to be considered.<br><br></div><div>Thanks for the help, Brad.<br></div></div><br><br></div></div>