Fix CMakeLists.txt to compile WebEnginePartHtmlEmbedder on Qt before Qt-5.12
authorStefano Crocco <stefano.crocco@alice.it>
Thu, 25 Jul 2019 09:37:51 +0000 (11:37 +0200)
committerPino Toscano <pino@debian.org>
Sat, 12 Oct 2019 18:26:50 +0000 (19:26 +0100)
commitb033b6b3096dfd5c543459fb0ca80fb80aaa8da4
treed2507cc11827c2e14d591a74df2027b9c98ba22b
parent321b3282f1ddf8bd5be615584eba4861e804f85a
Fix CMakeLists.txt to compile WebEnginePartHtmlEmbedder on Qt before Qt-5.12

When compiling Konqueror on versions of Qt before 5.12, the
WebEnginePartHtmlEmbedder class is needed to embed local contents in pages
generated by...

Summary:
...WebEnginePartKIOHandler (for example, for the man protocol). The
corresponding source file is added to the the list of source files only if the
Qt version is less than 5.12. However, an extra command in CMakeFiles.txt caused
the file not to be added and the compilation to fail.

Test Plan:
compile Konqueror with Qt older than 5.12.0: the compilation now
completes successfully.

Reviewers: dfaure

Reviewed By: dfaure

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

(cherry picked from commit f9bc950d257f8c7bf30feac5ba9c21de32e4e452)

Gbp-Pq: Name upstream_Fix-CMakeLists.txt-to-compile-WebEnginePartHtmlEmbed.patch
webenginepart/src/CMakeLists.txt