Fix linking on systems where there's no libGLX.so but mesa provides bindings
Behave like qmake and link against libGL simply. This happened in offscreen.pro implicitly through QT += gui-private and needs to happen explicitly here by using the CONFIG += opengl equivalent: WrapOpenGL. Change-Id: I396c2256c89f4560bb7f936f7540b33c754b9eda Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
64b31cafa1
commit
c2379c469c
@ -1,5 +1,5 @@
|
||||
qt_find_package(X11) # special case
|
||||
qt_find_package(OpenGL) # special case
|
||||
qt_find_package(WrapOpenGL PROVIDED_TARGETS WrapOpenGL) # special case
|
||||
|
||||
#####################################################################
|
||||
## GlxSupport Module:
|
||||
@ -12,7 +12,7 @@ add_qt_module(GlxSupport
|
||||
DEFINES
|
||||
QT_NO_CAST_FROM_ASCII
|
||||
LIBRARIES
|
||||
OpenGL::GLX # special case
|
||||
WrapOpenGL # special case
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
X11::X11 # special case
|
||||
|
Loading…
Reference in New Issue
Block a user