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)
10
10
message (FATAL_ERROR "Unable to locate CGNS library." )
11
11
endif ()
12
12
13
+ vtk_module_load (vtkhdf5 )
13
14
#
14
15
include_directories (${CGNS_INCLUDE_DIR} )
15
16
@@ -58,6 +59,10 @@ vtkCGNSReader.cxx
58
59
vtkCGNSReader.h
59
60
)
60
61
62
+ if (PARAVIEW_USE_MPI )
63
+ include (vtkMPI )
64
+ endif ()
65
+
61
66
# ---------------------------------------------------------------------------
62
67
# Combined plugin
63
68
# -----------------------------------------------------------------------------
@@ -78,15 +83,19 @@ else()
78
83
SERVER_MANAGER_SOURCES ${SOURCES} )
79
84
endif ()
80
85
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" )
82
87
mark_as_advanced (CGNS_LINK_TO_HDF5 )
83
88
84
89
target_link_libraries (CGNSReader LINK_PRIVATE vtksys ${CGNS_LIBRARIES} )
85
90
if (CGNS_LINK_TO_HDF5 )
86
- target_link_libraries (CGNSReader LINK_PRIVATE -lhdf5 )
91
+ target_link_libraries (CGNSReader LINK_PRIVATE ${vtkhdf5_LIBRARIES} )
87
92
endif ()
88
93
89
94
# Add testing if necessary
90
95
if (BUILD_TESTING )
91
96
add_subdirectory (Testing )
92
97
endif ()
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