From f3bb1b17d04a9bd8456820fcab6131f07e79dcb1 Mon Sep 17 00:00:00 2001 From: Doug Smith Date: Mon, 29 Aug 2022 01:20:47 -0500 Subject: [PATCH] Add link to xcb on Linux (#446) --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f73a7df..0c4d671 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -67,6 +67,9 @@ add_library(ads::qtadvanceddocking ALIAS qtadvanceddocking) target_link_libraries(qtadvanceddocking PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Widgets) +if (UNIX AND NOT APPLE) + target_link_libraries(qtadvanceddocking PUBLIC xcb) +endif() set_target_properties(qtadvanceddocking PROPERTIES AUTOMOC ON AUTORCC ON