Configuration fails if qmlplugindump isn't in PATH
There seems to be an issue configuring VTK 9.1.0, if certain Qt related binaries are not in PATH. The issue pops up with the qmlplugindump
binary[1]
CMake Error at GUISupport/QtQuick/qml/CMakeLists.txt:74 (message):
qmlplugindump executable not found.
It is required to generate the qmltypes file for VTK Qml plugin.
-- Configuring incomplete, errors occurred!
I found, that searching for Qt::qmake instead of Qt::Core LOCATION solves this issue[2] and seems to be a more reliable way for getting the path of Qt related binaries.
What do you think?
[1] https://bugs.gentoo.org/836343 including full build log