FindQHelpGenerator: try to find Qt5Help instead of Qt5Core

Authored by pino on Nov 17 2018, 7:57 AM.

Description

FindQHelpGenerator: try to find Qt5Help instead of Qt5Core

Summary:
The Qt5Help CMake modules contain the Qt5::qhelpgenerator target, so
look for that instead of Qt5Core. Otherwise, the Qt5::qhelpgenerator
is available only if Qt5Help was searched previously (which does not
happen often).

Using the Qt5::qhelpgenerator is more reliable than the search for the
qhelpgenerator executable based on the qmake path.

Test Plan:
build some framework with -DBUILD_QCH=ON, and notice that
the right path of qhelpgenerator is found directly with the
Qt5::qhelpgenerator target.

Reviewers: kossebau

Reviewed By: kossebau

Subscribers: kde-frameworks-devel, kde-buildsystem

Tags: Frameworks, Build System

Differential Revision: https://phabricator.kde.org/D16938

Details

Committed
pinoNov 18 2018, 8:57 AM
Reviewer
kossebau
Differential Revision
D16938: FindQHelpGenerator: try to find Qt5Help instead of Qt5Core
Parents
R240:d42cc5dd7c4e: Use `MATCHES "Clang"` to detect clang
Branches
Unknown
Tags
Unknown