Author: Pino Toscano <pino@debian.org>
Description: Look for qhelpgenerator also in the Qt 6 libexec path
 It is available in that location, rather than the public bin path.
Last-Update: 2025-02-01

--- a/docs/api/CMakeLists.txt
+++ b/docs/api/CMakeLists.txt
@@ -36,7 +36,7 @@ if(LATEX_FOUND)
 endif()
 
 # qhelpgenerator
-find_program(QHELPGEN_EXECUTABLE qhelpgenerator HINTS ${QT_INSTALL_BINS})
+find_program(QHELPGEN_EXECUTABLE qhelpgenerator HINTS ${QT_INSTALL_LIBEXECS} ${QT_INSTALL_BINS})
 if(QHELPGEN_EXECUTABLE)
     set(HAVE_QHELPGEN "YES")
 else()
