File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if (NOT CGNS_FOUND)
1010 message (FATAL_ERROR "Unable to locate CGNS library." )
1111endif ()
1212
13+ vtk_module_load(vtkhdf5)
1314#
1415include_directories (${CGNS_INCLUDE_DIR} )
1516
@@ -58,6 +59,10 @@ vtkCGNSReader.cxx
5859vtkCGNSReader.h
5960)
6061
62+ if (PARAVIEW_USE_MPI)
63+ include (vtkMPI)
64+ endif ()
65+
6166# ---------------------------------------------------------------------------
6267# Combined plugin
6368# -----------------------------------------------------------------------------
@@ -78,15 +83,19 @@ else()
7883 SERVER_MANAGER_SOURCES ${SOURCES} )
7984endif ()
8085
81- set (CGNS_LINK_TO_HDF5 ON CACHE BOOL "use -lhdf5 for linking cgns to hdf5" )
86+ set (CGNS_LINK_TO_HDF5 ON CACHE BOOL "use vtkhdf5_LIBRARIES for linking cgns to hdf5" )
8287mark_as_advanced (CGNS_LINK_TO_HDF5)
8388
8489target_link_libraries (CGNSReader LINK_PRIVATE vtksys ${CGNS_LIBRARIES} )
8590if (CGNS_LINK_TO_HDF5)
86- target_link_libraries (CGNSReader LINK_PRIVATE -lhdf5 )
91+ target_link_libraries (CGNSReader LINK_PRIVATE ${vtkhdf5_LIBRARIES} )
8792endif ()
8893
8994# Add testing if necessary
9095if (BUILD_TESTING)
9196 add_subdirectory (Testing)
9297endif ()
98+
99+ if (PARAVIEW_USE_MPI)
100+ vtk_mpi_link(CGNSReader)
101+ endif ()
You can’t perform that action at this time.
0 commit comments