VTK with VTK_USE_SYSTEM_NETCDFCPP=ON incompatible with recent netcdf_cxx
Since at least netcdf 4.3.0, netcdfcpp.h does not exist anymore. However this is the file CMake is looking for because of this it fails with the folowing:
-- Failed to find NetCDF interface for CXX
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find NetCDF (missing: NETCDF_HAS_INTERFACES)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
VTK/CMake/FindNetCDF.cmake:118 (find_package_handle_standard_args)
VTK/CMake/vtkModuleMacros.cmake:891 (find_package)
VTK/ThirdParty/netcdfcpp/CMakeLists.txt:1 (vtk_module_third_party)
Edited by Mathieu Westphal (Kitware)