[CMake] PDB generation

Scott Aron Bloom scott.bloom at onshorecs.com
Wed May 21 13:07:59 EDT 2014


Im not sure if that is available on the version of MSVC I am using.. But Ill take a look.. Thanks

-----Original Message-----
From: David Cole [mailto:dlrdave at aol.com] 
Sent: Wednesday, May 21, 2014 9:45 AM
To: Scott Aron Bloom; cmake at cmake.org
Subject: Re: [CMake] PDB generation

> However, if the target of your project IS a static library that you 
> supply to customers for integration into their toosl, you NEED to 
> supply the pdb otherwise they are stuck getting the “pdb not found”
> warning message.


Rather than having a separate pdb file, for debug static libraries, you could just build the debugging info into the library itself with the compiler's "/Z7" flag.

    http://msdn.microsoft.com/en-us/library/958x11bc.aspx

I've been using it for static library debug builds of VTK and ITK to link into my app, and it's been working really well for me.

(And I don't know the answer to your original question, ... hopefully somebody else will chime in with something useful.)


HTH,
David C.




More information about the CMake mailing list