diff --git a/Polyhedron/demo/Polyhedron/CMakeLists.txt b/Polyhedron/demo/Polyhedron/CMakeLists.txt index 063ebfff2ae..0434cf081dd 100644 --- a/Polyhedron/demo/Polyhedron/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/CMakeLists.txt @@ -509,7 +509,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND) polyhedron_demo_plugin(example_plugin Polyhedron_demo_example_plugin ${exampleUI_FILES} ${example_dockUI_FILES}) target_link_libraries(example_plugin scene_polyhedron_item) - find_package(VTK QUIET COMPONENTS + find_package(VTK QUIET 6.0 COMPONENTS vtkCommonCore vtkIOCore vtkIOLegacy vtkIOXML) if (VTK_FOUND) include(${VTK_USE_FILE}) @@ -521,7 +521,7 @@ if(CGAL_Qt5_FOUND AND Qt5_FOUND AND OPENGL_FOUND AND QGLVIEWER_FOUND) message(STATUS "NOTICE : the vtk IO plugin needs VTK libraries and will not be compiled.") endif() else() - message(STATUS "NOTICE : the vtk IO plugin needs VTK and will not be compiled.") + message(STATUS "NOTICE : the vtk IO plugin needs VTK 6.0 or greater and will not be compiled.") endif() # # Exporting diff --git a/Surface_mesher/demo/Surface_mesher/CMakeLists.txt b/Surface_mesher/demo/Surface_mesher/CMakeLists.txt index bbe25d1e864..094be2bdeeb 100644 --- a/Surface_mesher/demo/Surface_mesher/CMakeLists.txt +++ b/Surface_mesher/demo/Surface_mesher/CMakeLists.txt @@ -97,7 +97,7 @@ if ( CGAL_FOUND AND CGAL_Qt5_FOUND AND CGAL_ImageIO_FOUND) add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${prj} ) - find_package(VTK 6.0 COMPONENTS + find_package(VTK QUIET 6.0 COMPONENTS vtkImagingCore ) if(VTK_FOUND)