diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-25 09:28:35 +0200 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-25 17:13:07 +0200 |
commit | a101e63bc0d97232b60fba0e2f52e59499210fa0 (patch) | |
tree | 7e0e67ab8520b6dd8640c3d401124c77003b29d5 /src | |
parent | f614fdfa5dc522f805c7c061535df6a0dc7409b9 (diff) | |
download | qtwayland-a101e63bc0d97232b60fba0e2f52e59499210fa0.tar.gz |
Exclude hardwareintegration plugins from Unity Build
It seems that when <EGL/egl.h> is included, we get conflicting symbols
between QUrl, and X11 symbols.
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I6a4d6c475d43d0f8f35a27b855a69cf6f842742a
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/hardwareintegration/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/hardwareintegration/CMakeLists.txt b/src/plugins/hardwareintegration/CMakeLists.txt index 949243d8..472a4f90 100644 --- a/src/plugins/hardwareintegration/CMakeLists.txt +++ b/src/plugins/hardwareintegration/CMakeLists.txt @@ -3,9 +3,15 @@ # Generated from hardwareintegration.pro. +# When doing unity build, we get symbol collisions with macros defined +# in X11.h, and Xlib.h +set(CMAKE_UNITY_BUILD OFF) + if(TARGET Qt::WaylandClient) add_subdirectory(client) endif() if(TARGET Qt::WaylandCompositor) add_subdirectory(compositor) endif() + +set(CMAKE_UNITY_BUILD ${QT_UNITY_BUILD}) |