--- a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt Mon Nov 14 17:59:47 2016 +++ b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt Thu Jan 05 21:15:28 2017 @@ -330,6 +330,7 @@ ${netcdf_dispatch_SOURCES} ${netcdf_liblib_SOURCES}) target_link_libraries(vtkNetCDF ${vtkhdf5_LIBRARIES}) +target_compile_definitions(vtkNetCDF PRIVATE ${vtkhdf5_DEFINITIONS}) if (UNIX) # link against the math library.