/usr/lib/cmake/vtk-7.1/vtkMPI.cmake is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Helper to find and configure MPI for VTK targets. Centralize the logic for
# any necessary compiler definitions, linking etc.
find_package(MPI REQUIRED)
mark_as_advanced(MPI_LIBRARY MPI_EXTRA_LIBRARY)
include_directories(${MPI_C_INCLUDE_PATH})
# Needed for MPICH 2
add_definitions("-DMPICH_IGNORE_CXX_SEEK")
# Function to link a VTK target to the necessary MPI libraries.
function(vtk_mpi_link target)
vtk_module_link_libraries(${target} LINK_PRIVATE ${MPI_C_LIBRARIES})
if(MPI_CXX_LIBRARIES)
vtk_module_link_libraries(${target} LINK_PRIVATE ${MPI_CXX_LIBRARIES})
endif()
endfunction()
|