Commit a3abadc1 authored by Dominik Szczerba's avatar Dominik Szczerba Committed by Robert Maynard
Browse files

Allow XDMF to be built even with parallel support off.

parent 402fbb2a
......@@ -100,7 +100,11 @@ IF (VTK_FOUND)
ENDIF(VTK_BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
ADD_LIBRARY(vtkXdmf ${LIBTYPE} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf vtkRendering vtkParallel)
IF(VTK_USE_PARALLEL)
TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf vtkRendering vtkParallel)
ELSE(VTK_USE_PARALLEL)
TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf vtkRendering)
ENDIF(VTK_USE_PARALLEL)
IF (VTK_USE_MPI)
# Needed for mpich 2
......@@ -119,7 +123,11 @@ ENDIF(XDMF_BUILD_MPI)
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapTcl.cmake OPTIONAL)
VTK_WRAP_TCL2(vtk${PROJECT_NAME}TCL XdmfTCL_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}TCL ${LIBTYPE} ${XdmfTCL_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}TCL vtkIOTCL vtkRenderingTCL vtkParallelTCL Xdmf)
IF(VTK_USE_PARALLEL)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}TCL vtkIOTCL vtkRenderingTCL vtkParallelTCL Xdmf)
ELSE(VTK_USE_PARALLEL)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}TCL vtkIOTCL vtkRenderingTCL Xdmf)
ENDIF(VTK_USE_PARALLEL)
ADD_DEPENDENCIES(vtk${PROJECT_NAME}TCL vtk${PROJECT_NAME})
ENDIF(VTK_WRAP_TCL)
......@@ -128,8 +136,11 @@ ENDIF(XDMF_BUILD_MPI)
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapPython.cmake OPTIONAL)
VTK_WRAP_PYTHON2(vtk${PROJECT_NAME}Python XdmfPython_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}Python MODULE ${XdmfPython_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPythonD
vtkRenderingPythonD vtkParallelPythonD Xdmf)
IF(VTK_USE_PARALLEL)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPythonD vtkRenderingPythonD vtkParallelPythonD Xdmf)
ELSE(VTK_USE_PARALLEL)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPythonD vtkRenderingPythonD Xdmf)
ENDIF(VTK_USE_PARALLEL)
ADD_DEPENDENCIES(vtk${PROJECT_NAME}Python vtk${PROJECT_NAME})
ENDIF(VTK_WRAP_PYTHON)
ELSE(VTK_FOUND)
......
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