summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/offscreen
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@qt.io>2019-05-02 17:23:29 +0300
committerTobias Hunger <tobias.hunger@qt.io>2019-05-02 14:56:32 +0000
commit1361cf5d50e0baa901c06cab7f87785a03c57cb7 (patch)
tree37fdfb341e97146af11b5a61a578731e29e22700 /src/plugins/platforms/offscreen
parentef3e37b9a334ee91a84aabd3a1b2c5cdfe3c7abe (diff)
CMake: better GLX detection
Change-Id: I71dfbb331cb02a3249b0c3c65f2a9bd9ce68c739 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/platforms/offscreen')
-rw-r--r--src/plugins/platforms/offscreen/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/platforms/offscreen/CMakeLists.txt b/src/plugins/platforms/offscreen/CMakeLists.txt
index 3546f8710b..513bc0a6be 100644
--- a/src/plugins/platforms/offscreen/CMakeLists.txt
+++ b/src/plugins/platforms/offscreen/CMakeLists.txt
@@ -33,7 +33,7 @@ add_qt_plugin(qoffscreen
## Scopes:
#####################################################################
-extend_target(qoffscreen CONDITION QT_FEATURE_opengl AND QT_FEATURE_xlib AND NOT QT_FEATURE_opengles2
+extend_target(qoffscreen CONDITION QT_FEATURE_opengl AND QT_FEATURE_xlib AND TARGET OpenGL::GLX # special case
SOURCES
qoffscreenintegration_x11.cpp qoffscreenintegration_x11.h
LIBRARIES
@@ -42,5 +42,9 @@ extend_target(qoffscreen CONDITION QT_FEATURE_opengl AND QT_FEATURE_xlib AND NOT
Qt::GlxSupport
)
-#### Keys ignored in scope 3:.:.:./offscreen.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
+extend_target(qoffscreen CONDITION NOT TARGET OpenGL::GLX OR NOT QT_FEATURE_opengl OR NOT QT_FEATURE_xlib # special case
+ SOURCES
+ qoffscreenintegration_dummy.cpp
+)
+
# PLUGIN_EXTENDS = "-"