Configuring CMake for PDB Files¶
In addition to the full .pdb files, a project can be configured to generate stripped .pdb
files by adding the /PDBSTRIPPED:filename
linker switch.
For example, in CMake:
* set_target_properties( pcoip_client PROPERTIES LINK_FLAGS "/DEBUG
/PDBSTRIPPED:pcoip_client.pdb" )
.pdb
files are copied over automatically to CMAKE_PDB_OUTPUT_DIRECTORY
if CMAKE_PDB_OUTPUT_DIRECTORY
is defined in the cmake file.
Stripped .pdb
files are
generated at the location where the .vcxproj
file is located.
Microsoft Documentation
For more information on debugging with symbols, see https://msdn.microsoft.com/en-us/library/windows/desktop/ee416588(v=vs.85).aspx