Permalink
Browse files

Merge branch 'fix-vtk6-python-disabled-build-error'

* fix-vtk6-python-disabled-build-error:
  Ensure CTKVisualizationVTKWidget build with VTK6 and python disabled.
  • Loading branch information...
2 parents 9331130 + c6e22f6 commit 1c97e5426f898bc7d074e6122992d0dd12bab56b @jcfr jcfr committed Nov 1, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 Libs/Visualization/VTK/Widgets/CMakeLists.txt
@@ -119,9 +119,11 @@ if(${VTK_VERSION_MAJOR} GREATER 5)
vtkInteractionWidgets
vtkRenderingContext2D
vtkViewsContext2D
- vtkWrappingPythonCore
vtkGUISupportQt
)
+ if(CTK_LIB_Scripting/Python/Core AND CTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK)
+ set(VTK_LIBRARIES ${VTK_LIBRARIES} vtkWrappingPythonCore)
+ endif()
else()
set(VTK_LIBRARIES
QVTK

0 comments on commit 1c97e54

Please sign in to comment.