File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-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
@@ -78,12 +79,12 @@ else()
7879 SERVER_MANAGER_SOURCES ${SOURCES} )
7980endif ()
8081
81- set (CGNS_LINK_TO_HDF5 ON CACHE BOOL "use -lhdf5 for linking cgns to hdf5" )
82+ set (CGNS_LINK_TO_HDF5 ON CACHE BOOL "use vtkhdf5_LIBRARIES for linking cgns to hdf5" )
8283mark_as_advanced (CGNS_LINK_TO_HDF5)
8384
8485target_link_libraries (CGNSReader LINK_PRIVATE vtksys ${CGNS_LIBRARIES} )
8586if (CGNS_LINK_TO_HDF5)
86- target_link_libraries (CGNSReader LINK_PRIVATE -lhdf5 )
87+ target_link_libraries (CGNSReader LINK_PRIVATE ${vtkhdf5_LIBRARIES} )
8788endif ()
8889
8990# Add testing if necessary
You can’t perform that action at this time.
0 commit comments