ParaView cannot be configured with `-DPARAVIEW_QT_VERSION=5` if Qt6 installed on the system because of `VTK_QT_VERSION`
Generating build files with CMake on a machine with both qt5 and qt6 installed leads to errors (QT_MAJOR_VERSION conflicts). This can be resolved by setting VTK_QT_VERSION = 5, as "auto" seems to cause the conflict.
a simple fix: cmake -DPARAVIEW_QT_VERSION=5 -DVTK_QT_VERSION=5 ../src/
Edited by Mathieu Westphal (Kitware)