cmake: fix WITH_VTK usage
authorAlexander Alekhin <alexander.alekhin@intel.com>
Wed, 29 Nov 2017 13:52:42 +0000 (16:52 +0300)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Wed, 29 Nov 2017 18:43:09 +0000 (21:43 +0300)
commit22c0bb7dc9570416d6c4beec54735b6a58dac495
tree36ccb2eb7d0005b1bc7a8f45fc3aafd38e1950d8
parentb19f81b35bbc49d45ac6297469a84ce29164f235
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_').
CMakeLists.txt
cmake/OpenCVDetectVTK.cmake
modules/viz/CMakeLists.txt