mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
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:
committed by
Alexander Alekhin
parent
b19f81b35b
commit
22c0bb7dc9
@@ -1,4 +1,4 @@
|
||||
if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK)
|
||||
if(NOT HAVE_VTK)
|
||||
ocv_module_disable(viz)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user