cmake: fix WITH_VTK usage

'WITH_' variables is intended to enable CMake scripts with some autodetection logic.
'WITH_' can be off, but components is really enabled via command-line options
with proper variables setup (including 'HAVE_').
This commit is contained in:
Alexander Alekhin
2017-11-29 16:52:42 +03:00
committed by Alexander Alekhin
parent b19f81b35b
commit 22c0bb7dc9
3 changed files with 4 additions and 6 deletions

View File

@@ -1,7 +1,3 @@
if(NOT WITH_VTK)
return()
endif()
# VTK 6.x components
find_package(VTK QUIET COMPONENTS vtkInteractionStyle vtkRenderingLOD vtkIOPLY vtkFiltersTexture vtkRenderingFreeType vtkIOExport NO_MODULE)
IF(VTK_FOUND)