Commit 9145985f authored by Anatoly Baksheev's avatar Anatoly Baksheev

added guard to prevent linking VTK with Qt5

parent 130914d9
...@@ -2,6 +2,11 @@ if(NOT WITH_VTK OR ANDROID OR IOS) ...@@ -2,6 +2,11 @@ if(NOT WITH_VTK OR ANDROID OR IOS)
return() return()
endif() endif()
if (HAVE_QT5)
message(STATUS "VTK is disabled because OpenCV is linked with Q5. Some VTK disributives are compiled with Q4 and therefore can't be linked together Qt5.")
return()
endif()
find_package(VTK 6.0 QUIET COMPONENTS vtkRenderingCore vtkInteractionWidgets vtkInteractionStyle vtkIOLegacy vtkIOPLY vtkRenderingFreeType vtkRenderingLOD vtkFiltersTexture vtkIOExport NO_MODULE) find_package(VTK 6.0 QUIET COMPONENTS vtkRenderingCore vtkInteractionWidgets vtkInteractionStyle vtkIOLegacy vtkIOPLY vtkRenderingFreeType vtkRenderingLOD vtkFiltersTexture vtkIOExport NO_MODULE)
if(NOT DEFINED VTK_FOUND OR NOT VTK_FOUND) if(NOT DEFINED VTK_FOUND OR NOT VTK_FOUND)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment