From 67f163892e822085fc69b350ffb2aee706c17108 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Fri, 27 Jan 2017 15:51:19 +0100 Subject: [PATCH] viz: fix compilation - we need the VTK includes before ocv_define_module --- modules/viz/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/viz/CMakeLists.txt b/modules/viz/CMakeLists.txt index a22f52fd87..21cda31d8f 100644 --- a/modules/viz/CMakeLists.txt +++ b/modules/viz/CMakeLists.txt @@ -3,9 +3,8 @@ if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK) endif() set(the_description "Viz") -ocv_define_module(viz opencv_core WRAP python) - include(${VTK_USE_FILE}) +ocv_define_module(viz opencv_core WRAP python) ocv_target_link_libraries(${the_module} ${VTK_LIBRARIES}) if(APPLE AND BUILD_opencv_viz)