[CMake] PDB_NAME with DEBUG_POSTFIX
Carl Poirier
carl.poirier.2 at gmail.com
Wed Nov 9 10:04:53 EST 2016
Hi folks,
A few months later, would anyone have an explanation for this?
Thank you,
Carl
On Fri, Feb 19, 2016 at 9:07 AM, Carl Poirier <carl.poirier.2 at gmail.com>
wrote:
> Hi folks,
>
> I have a question here regarding the use of the DEBUG_POSTFIX. When I set
> it as well as the property OUTPUT_NAME, the former is correctly applied to
> the latter. Now when I try to do so with a library, the DEBUG_POSTFIX does
> not get applied to the PDB filename. Here are the relevant lines of my
> CMakeLists.txt:
>
> # Set the resulting filenames
> set_target_properties(${PrjName1} PROPERTIES COMPILE_PDB_NAME mylib)
> set_target_properties(${PrjName1} PROPERTIES OUTPUT_NAME mylib)
>
> # Add "D" postfix for the debug build
> set_target_properties(${PrjName1} PROPERTIES DEBUG_POSTFIX "D")
>
> So is there a reason why it works (or doesn't) that way? The best
> workaround I have now is set the names on a per-configuration basis.
>
> Regards,
>
> Carl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161109/49d5f047/attachment.html>
More information about the CMake
mailing list