use list to handle vtk components
This commit is contained in:
parent
9b6d4e2f12
commit
f205b411e3
|
@ -566,22 +566,27 @@ 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 COMPONENTS
|
||||
vtkCommonCore
|
||||
vtkCommonDataModel
|
||||
vtkFiltersVerdict
|
||||
vtkIOXML
|
||||
vtkFiltersCore
|
||||
vtkFiltersGeneral
|
||||
vtkIOLegacy
|
||||
vtkFiltersExtraction
|
||||
vtkFiltersSources
|
||||
vtkFiltersGeometry REQUIRED) #don't check VERSION 6 as this would exclude version 7
|
||||
set (VTK_COMPONENTS
|
||||
vtkCommonCore
|
||||
vtkCommonDataModel
|
||||
vtkFiltersVerdict
|
||||
vtkIOXML
|
||||
vtkFiltersCore
|
||||
vtkFiltersGeneral
|
||||
vtkIOLegacy
|
||||
vtkFiltersExtraction
|
||||
vtkFiltersSources
|
||||
vtkFiltersGeometry
|
||||
)
|
||||
# On Windows there might be no vtkParallelMPI package
|
||||
if (NOT WIN32)
|
||||
find_package(VTK COMPONENTS
|
||||
vtkParallelMPI REQUIRED)
|
||||
set (VTK_COMPONENTS
|
||||
${VTK_COMPONENTS}
|
||||
vtkParallelMPI)
|
||||
endif()
|
||||
|
||||
find_package(VTK COMPONENTS ${VTK_COMPONENTS} 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" )
|
||||
|
|
Loading…
Reference in New Issue
Block a user