[CMake] Packaging debug symbol files on Windows

Nils Gladitz nilsgladitz at gmail.com
Mon Jul 27 09:58:11 EDT 2015


On 07/27/2015 03:46 PM, Andreas Pakulat wrote:
> I've meanwhile also noticed that the default compiler flags that CMake
> uses include the debug information in the dll itself (dll size is
> doubled), so for now don't even have to have the separate pdb files
> packaged anymore (in this case the pdb info is small enough to just keep
> in the dll).

I am not entirely sure what you mean but CMake's default flags for the 
Visual Studio compiler when building "Debug" or "RelWithDebInfo" use /Zi 
(debug information in external pdb) rather than /Z7 (embedded debug 
information; no pdb is generated).

Maybe your project replaces the default flags?

Nils


More information about the CMake mailing list