Skip to content

Commit 67f1638

Browse files
committed
viz: fix compilation - we need the VTK includes before ocv_define_module
1 parent 383559c commit 67f1638

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/viz/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK)
33
endif()
44

55
set(the_description "Viz")
6-
ocv_define_module(viz opencv_core WRAP python)
7-
86
include(${VTK_USE_FILE})
7+
ocv_define_module(viz opencv_core WRAP python)
98
ocv_target_link_libraries(${the_module} ${VTK_LIBRARIES})
109

1110
if(APPLE AND BUILD_opencv_viz)

0 commit comments

Comments
 (0)