[CMake] PDB_NAME with DEBUG_POSTFIX
Carl Poirier
carl.poirier.2 at gmail.com
Fri Feb 19 09:07:20 EST 2016
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/20160219/3957e3fe/attachment.html>
More information about the CMake
mailing list