favreau / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Add a "d" postfix for debug-build libs #542

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was wondering whether it would be possible to get the "d" postfix for debug 
libs in the trunk.

This would make it easier to distinguish debug-built libs from release-built 
libs.
And this would also ensure the install would not simply override libs between a 
debug-install and a release-install.

SET(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Adds a postfix for debug-built 
libraries.")

For your C&P pleasure, 2 second fix :)

Original issue reported on code.google.com by dennis.c...@gmail.com on 14 Sep 2011 at 9:09

GoogleCodeExporter commented 9 years ago

Sure, good idea.

I wonder if it also impacts executable names?

Bullet already has this INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES option:

IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
            SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES  DEBUG_POSTFIX "_Debug")
            SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES  MINSIZEREL_POSTFIX "_MinsizeRel")
            SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES  RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)

I'll check it,
thanks!
Erwin

Original comment by erwin.coumans on 14 Sep 2011 at 11:20

GoogleCodeExporter commented 9 years ago
Fixed in latest trunk, using the same post fixes as the executables

http://code.google.com/p/bullet/source/detail?r=2429

Original comment by erwin.coumans on 15 Sep 2011 at 12:06