ENH: Added new VTK_ABI_CXX_FLAGS to kits to support GCC visibility.
authorMarcus Hanwell <marcus.hanwell@kitware.com>
Mon, 25 Jan 2010 17:12:20 +0000 (12:12 -0500)
committerMarcus Hanwell <marcus.hanwell@kitware.com>
Mon, 25 Jan 2010 17:12:20 +0000 (12:12 -0500)
CMake/KitCommonBlock.cmake

index f1e7ab3..f3d5001 100644 (file)
@@ -6,6 +6,10 @@ VTK_MAKE_INSTANTIATOR3(vtk${KIT}Instantiator KitInstantiator_SRCS
 
 ADD_LIBRARY(vtk${KIT} ${Kit_SRCS} ${Kit_EXTRA_SRCS} ${KitInstantiator_SRCS})
 SET(KIT_LIBRARY_TARGETS ${KIT_LIBRARY_TARGETS} vtk${KIT})
+# Add target specific compile flags for ABI setttings
+IF(VTK_ABI_CXX_FLAGS)
+  SET_PROPERTY(TARGET APPEND PROPERTY COMPILE_FLAGS "${VTK_ABI_CXX_FLAGS}")
+ENDIF(VTK_ABI_CXX_FLAGS)
 
 # Allow the user to customize their build with some local options
 #