From 44acd87abb025e25992a195b819d8f5cf00ea01e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 28 May 2018 16:19:10 +0200 Subject: Documentation: Fix Qt11Extras Work around the non-standard header naming of the module in the documentation generation (see also file sources/pyside2/PySide2/QtX11Extras/QtX11Extras_global.post.h.in). Task-number: PYSIDE-363 Change-Id: I3ff8bb666513a13fde4d13693fd06bdd7866e050 Reviewed-by: Alexandru Croitor --- sources/pyside2/doc/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sources/pyside2/doc') diff --git a/sources/pyside2/doc/CMakeLists.txt b/sources/pyside2/doc/CMakeLists.txt index eb9a8ad10..1c2c3669e 100644 --- a/sources/pyside2/doc/CMakeLists.txt +++ b/sources/pyside2/doc/CMakeLists.txt @@ -54,7 +54,12 @@ foreach(moduleIn ${all_module_shortnames}) " -I ${QT_INCLUDE_DIR}Qt${module}/${Qt5Core_VERSION} \\\n" " -I ${QT_INCLUDE_DIR}Qt${module}/${Qt5Core_VERSION}/Qt${module} \\\n") - set(docHeaderContents "${docHeaderContents}\n#include ") + if (${moduleIn} STREQUAL "X11Extras") + set(globalHeader "QX11Info") + else() + set(globalHeader "Qt${module}") + endif() + set(docHeaderContents "${docHeaderContents}\n#include ") set(typeSystemDocXmlContents "${typeSystemDocXmlContents}\n") endforeach() endif() -- cgit v1.2.3