Commit 87471839 authored by Dave Demarle's avatar Dave Demarle
Browse files

COMP: fix compilation with mpich2

parent b1b14bbc
......@@ -183,6 +183,11 @@ IF(XDMF_REGENERATE_YACCLEX)
ENDIF(XDMF_REGENERATE_YACCLEX)
IF (VTK_USE_MPI)
# Needed for mpich 2
ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK")
ENDIF (VTK_USE_MPI)
INCLUDE (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
IF(WIN32)
CHECK_TYPE_SIZE(__int64 SIZEOF___INT64)
......
......@@ -54,6 +54,11 @@ IF (VTK_FOUND)
ADD_LIBRARY(vtkXdmf ${LIBTYPE} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf vtkRendering vtkParallel)
IF (VTK_USE_MPI)
# Needed for mpich 2
ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK")
ENDIF (VTK_USE_MPI)
# Create Tcl wrappers if VTK is wrapped in Tcl.
IF(VTK_WRAP_TCL)
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapTcl.cmake OPTIONAL)
......
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