Skip to content

Commit

Permalink
do not require vtkParallelMPI on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 11, 2016
1 parent a138d1f commit 9b6d4e2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion CMakeLists.txt
Expand Up @@ -566,7 +566,22 @@ 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 vtkParallelMPI 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
# On Windows there might be no vtkParallelMPI package
if (NOT WIN32)
find_package(VTK COMPONENTS
vtkParallelMPI REQUIRED)
endif()
set(BUILD_FEM_VTK ON)
if(${VTK_MAJOR_VERSION} LESS 6)
message( FATAL_ERROR "Found VTK version is <6, this is not compatible" )
Expand Down

0 comments on commit 9b6d4e2

Please sign in to comment.