From 1e46db88a1abd00e49bf2aefd364779e73fba8bf Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 4 Jan 2022 11:07:40 +0100 Subject: [PATCH] Do not link packages against libGLX and libOpenGL Also for the additional plugins. Work around QTBUG-89754 Amends 7d948b0c5ddba598b74cba3bbfe5275d16a80e10 Fixes: QTCREATORBUG-26744 Change-Id: I5cafcbe77a37fcd9c5432ef45aa364066d772be8 Reviewed-by: Cristian Adam Reviewed-by: --- scripts/build_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build_plugin.py b/scripts/build_plugin.py index 0a0061e8735..fe528618891 100755 --- a/scripts/build_plugin.py +++ b/scripts/build_plugin.py @@ -107,6 +107,10 @@ def build(args, paths): # TODO this works around a CMake bug https://gitlab.kitware.com/cmake/cmake/issues/20119 cmake_args += ['-DBUILD_WITH_PCH=OFF'] + # work around QTBUG-89754 + # Qt otherwise adds dependencies on libGLX and libOpenGL + cmake_args += ['-DOpenGL_GL_PREFERENCE=LEGACY'] + if args.with_docs: cmake_args += ['-DWITH_DOCS=ON']