examples: fix compile without gui module
With disabled gui module qmake in the directory examples/gui and examples/widgets failes with: Project ERROR: Could not find feature opengl. Fix this by protecting 'qtConfig(opengl)' by 'qtHaveModule(gui)' as already done in examples/examples.pro. Task-number: QTBUG-60488 Change-Id: Ia842124e818e8c81d41d2b8e3b8905bf1dee58ce Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
05f22d6eb2
commit
18d49808db
@ -6,5 +6,5 @@ CONFIG += no_docs_target
|
|||||||
|
|
||||||
SUBDIRS += analogclock
|
SUBDIRS += analogclock
|
||||||
SUBDIRS += rasterwindow
|
SUBDIRS += rasterwindow
|
||||||
qtConfig(opengl): \
|
qtHaveModule(gui):qtConfig(opengl): \
|
||||||
SUBDIRS += openglwindow
|
SUBDIRS += openglwindow
|
||||||
|
@ -22,7 +22,7 @@ SUBDIRS = \
|
|||||||
tutorials \
|
tutorials \
|
||||||
widgets
|
widgets
|
||||||
|
|
||||||
qtConfig(opengl): \
|
qtHaveModule(gui):qtConfig(opengl): \
|
||||||
SUBDIRS += windowcontainer
|
SUBDIRS += windowcontainer
|
||||||
|
|
||||||
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
|
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
|
||||||
|
Loading…
Reference in New Issue
Block a user