From ebfba0b8635ab6264756b2e022d3973cc0dbcdfe Mon Sep 17 00:00:00 2001 From: Michele Renda Date: Tue, 18 Oct 2016 11:16:37 +0300 Subject: [PATCH] [PATCH] Fix CMake VTK find_package, specifying which components are used. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88bbb6e3a..ede2e663d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -566,7 +566,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # Salome SMESH sources are under src/3rdParty now IF(BUILD_SMESH) #if we use smesh we definitly also need vtk, no matter of external or internal smesh - find_package(VTK REQUIRED) #don't check VERSION 6 as this would exclude version 7 + find_package(VTK COMPONENTS vtkCommonCore vtkCommonDataModel vtkFiltersVerdict vtkIOXML vtkFiltersCore vtkFiltersGeneral vtkIOLegacy vtkFiltersExtraction vtkFiltersSources vtkFiltersGeometry REQUIRED) #don't check VERSION 6 as this would exclude version 7 set(BUILD_FEM_VTK ON) if(${VTK_MAJOR_VERSION} LESS 6) message( FATAL_ERROR "Found VTK version is <6, this is not compatible" )