Commit f9e4b259 authored by Brian Wylie's avatar Brian Wylie

COMP: Add logic to define and use ${MPI_LIBRARIES} in TARGET_LINK_LIBRARIES...

COMP: Add logic to define and use ${MPI_LIBRARIES} in TARGET_LINK_LIBRARIES otherwise ParallelIso has unresolved MPI symbols.
parent b9bd59f6
INCLUDE_REGULAR_EXPRESSION("^(lex|vtk|png|j|Task|Pipe).*$")
IF (VTK_USE_MPI)
IF (MPI_LIBRARY)
SET(MPI_LIBRARIES ${MPI_LIBRARY})
ENDIF (MPI_LIBRARY)
IF (MPI_EXTRA_LIBRARY)
SET(MPI_LIBRARIES ${MPI_LIBRARIES} "${MPI_EXTRA_LIBRARY}")
ENDIF (MPI_EXTRA_LIBRARY)
# Needed for mpich 2
ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK")
IF (VTK_USE_RENDERING)
ADD_EXECUTABLE(ParallelIso ParallelIso.cxx)
TARGET_LINK_LIBRARIES(ParallelIso vtkParallel vtkHybrid)
TARGET_LINK_LIBRARIES(ParallelIso vtkParallel vtkHybrid ${MPI_LIBRARIES})
IF(APPLE AND VTK_USE_CARBON)
TARGET_LINK_LIBRARIES(ParallelIso "-framework Carbon")
ENDIF(APPLE AND VTK_USE_CARBON)
......@@ -15,8 +22,7 @@ IF (VTK_USE_MPI)
SET(TaskPara_SRCS TaskParallelism.cxx task1.cxx task2.cxx)
ADD_EXECUTABLE(TaskParallelism ${TaskPara_SRCS})
TARGET_LINK_LIBRARIES (TaskParallelism vtkParallel)
TARGET_LINK_LIBRARIES (TaskParallelism vtkParallel)
IF(APPLE AND VTK_USE_CARBON)
TARGET_LINK_LIBRARIES(TaskParallelism "-framework Carbon")
ENDIF(APPLE AND VTK_USE_CARBON)
......
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