(0028743)
|
Matthew Woehlke
|
2012-07-02 13:58
|
|
Two changes are needed to fix this issue. The first is obvious:
diff --git a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt
index 8643c35..a5f6ea6 100644
--- a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt
+++ b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt
@@ -338,7 +338,7 @@ VTK_ADD_LIBRARY(vtkNetCDF
IF (NETCDF_ENABLE_NETCDF4)
if (VTK_USE_SYSTEM_HDF5)
- TARGET_LINK_LIBRARIES(vtkNetCDF ${HDF5_hdf5_LIBRARY} ${HDF5_hdf5_hl_LIBRARY})
+ TARGET_LINK_LIBRARIES(vtkNetCDF ${HDF5_hdf5_LIBRARY} ${HDF5_hdf5_hl_LIBRARY} ${HDF5_m_LIBRARY})
else()
TARGET_LINK_LIBRARIES(vtkNetCDF ${vtkhdf5_LIBRARIES})
endif()
The second is more subtle; when calling find_package(HDF5), it is necessary to specify 'COMPONENTS HL'.
I have a local patch to teach vtk_module_third_party to pass through a COMPONENTS list, but a: am not sure this is the best way, and b: am not sure it is okay to share the patch (as it was written under DARPA contract). If this seems like a good approach, please let me know, and I will see about getting approval to share the patch. |
|