[CMake] Install PDB files

Bo Thorsen bo at askmonty.org
Thu Jul 8 04:59:56 EDT 2010


Den 07-07-2010 19:43, Rolf Eike Beer skrev:
> Am Wednesday 07 July 2010 schrieb Patrick Spendrin:
>> Hello everybody,
>>
>> we're currently thinking about setting up a symbol server for our
>> project, and cannot find out how to install the pdb file together with
>> the install command (or in another way).
>>
>> Did somebody do this already? Is there only the way to fetch the pdb
>> files by hand?
>
> We have currently an ugly macro that searches for the PDB in all possible
> places (e.g. foo for NMake, foo/Release, foo/Debug, foo/RelWithDebInfo, and
> foo/MinSizeRel for MSVC) and installs them. To make a long story short: this
> sucks.

There are people who have written better macros for this. The idea is to 
get the full path of a known target file - an exe for example - and 
replace the filename on it. Try googling for this, I don't have a link 
at hand.

> When someone adds this please keep in mind that gcc also has the possibility
> to strip the debugging symbols of an object to a different file. This should be
> taken care of here, too.

I doubt that's a problem with .pdb files :)

> I propose an option to the install command, something like:
>
> INSTALL(TARGET foo
>    ARCHIVE lib
>    RUNTIME bin
>    LIBRARY lib
>    DEBUG_SYMBOLS dbg
> )

Then you have people who want .map files, .exp files etc. You can't make 
a positive list and solve the actual problem.

I have a bug report with this particular problem here:

http://www.cmake.org/Bug/view.php?id=10940

Bo Thorsen.
Monty Program AB.

-- 

MariaDB: MySQL replacement
Community developed. Feature enhanced. Backward compatible.


More information about the CMake mailing list