diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 645245ce..78985b93 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -105,11 +105,20 @@ if(SPHINX) endif() endif() - if(TARGET ${QT}::qhelpgenerator) + if (QT_VERSION VERSION_LESS 5.12.0) + if (TARGET ${QT}::qcollectiongenerator) + set(QHELPGEN $) + endif() + else() + if(TARGET ${QT}::qhelpgenerator) + set(QHELPGEN $) + endif() + endif() + if(QHELPGEN) set(QTHELP_IDX ${D}/qthelp/xca.qhc ${D}/qthelp/xca.qch) add_custom_command( OUTPUT ${QTHELP_IDX} - COMMAND $ ${D}/qthelp/xca.qhcp + COMMAND ${QHELPGEN} ${D}/qthelp/xca.qhcp DEPENDS sphinx-qthelp COMMENT "Create context sensitive help index" )