install fails to find qhelpgenerator for Qt5
As I reported in discourse I encountered problems compiling/installing with opensuse leap-15.0. After establishing that it appeared to be a distro bug, I decided to follow up on it. However, after closer examination I feel that this is actually a paraview bug.
Explanation.
It is possible to install both qt4 and qt5 without clashes. However, this requires more consistent use of the Qt Components when using cmake.
The /usr/lib64/cmake/Qt5Help/
component configuration does properly list the name and location of the qhelp generator:
if (NOT TARGET Qt5::qhelpgenerator)
add_executable(Qt5::qhelpgenerator IMPORTED)
set(imported_location "${_qt5Help_install_prefix}/lib64/qt5/bin/qhelpgenerator")
_qt5_Help_check_file_exists(${imported_location})
set_target_properties(Qt5::qhelpgenerator PROPERTIES
IMPORTED_LOCATION ${imported_location}
)
endif()
And indeed it can be found as /usr/lib64/qt5/bin/qhelpgenerator
which is a symlink to /usr/bin/qhelpgenerator-qt5
.
However, since CMake/ParaViewMacros.cmake
searches directly for qhelpgenerator
this fails.