CMake artifact names

Post Reply
Moose
Posts: 31
Joined: Mon Nov 04, 2013 10:58 am

CMake artifact names

Post by Moose »

Hello,

in the CMakeLists.txt for bullet2.8x there's a strange set of lines causing errors for me:

+113
SET(CMAKE_DEBUG_POSTFIX "_Debug" CACHE STRING "Adds a postfix for debug-built libraries.")
SET(CMAKE_MINSIZEREL_POSTFIX "_MinsizeRel" CACHE STRING "Adds a postfix for MinsizeRelease-built libraries.")
SET(CMAKE_RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo" CACHE STRING "Adds a postfix for ReleaseWithDebug-built libraries.")

as this sets the properties cmake wide they 'bleed' into my artifacts, modifying their names.
Would it be possible to change those lines to:

SET(BULLET_DEBUG_POSTFIX "_Debug" CACHE STRING "Adds a postfix for debug-built libraries.")
SET(BULLET_MINSIZEREL_POSTFIX "_MinsizeRel" CACHE STRING "Adds a postfix for MinsizeRelease-built libraries.")
SET(BULLET_RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo" CACHE STRING "Adds a postfix for ReleaseWithDebug-built libraries.")

AFAICS this would have the same effect but leave projects intact that include bullet as a subproject.

Much appreciated,

Moose
Post Reply