MantisBT - VTK
View Issue Details
0005065VTK(No Category)public2007-05-21 01:312016-08-12 09:54
Andrew Maclean 
Will Schroeder 
normalfeaturealways
closedmoved 
 
 
0005065: Build debug and release libs/dlls to the same directory.
An option to build/install debug and release libs/dlls to the same directory.

I think this can be easily done by changging: <VTK_DIR>\Cmake\KitCommonBlock.cmake
From:
IF(VTK_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(${KIT_LIBRARY_TARGETS} PROPERTIES
    ${VTK_LIBRARY_PROPERTIES}
    )
  
ENDIF(VTK_LIBRARY_PROPERTIES)
to:
IF(VTK_LIBRARY_PROPERTIES)
  SET_TARGET_PROPERTIES(${KIT_LIBRARY_TARGETS} PROPERTIES
    ${VTK_LIBRARY_PROPERTIES}
    )

#Add this line to change the output debug library name to *_d.lib/.dll
  SET_TARGET_PROPERTIES(${KIT_LIBRARY_TARGETS} PROPERTIES
    DEBUG_POSTFIX _d
    )

ENDIF(VTK_LIBRARY_PROPERTIES)

This is documented at the following URL: http://www.vesuite.org/forum/viewtopic.php?=&p=341 [^]

Can this be extended to include an option to add the _d extension automatically when building VTK?

The rationale is that when building your own code it would be nice to automatically include either the debug or release versions as appropriate.
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036913
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036913)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.