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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to