[Insight-users] Configuring ITK's and VTK's CMakeLists to use debug postfixes

Andreas Keil andreas.keil at cs.tum.edu
Mon May 7 08:17:00 EDT 2007


Dear all,

I'd like to use debug and release builts of ITK and VTK in the shared lib
form (as DLL under WinXP). Is it possible to configure CMake to add a "D"
postfix to all library names for the debug configuration?

I figured out that there's a CMake command
   SET_TARGET_PROPERTIES(libname PROPERTIES DEBUG_POSTFIX "D")
but it seems that this property would have to be set for every single
library which would in turn require a lot of modifications in ITK's/VTK's
CMake files.

Is there any way to globally enforce a "D" postfix on any debug build?

Thank you,
Andreas.



More information about the Insight-users mailing list