From 1337baf83244de8a7c1190bb136f2d2487c8ef3b Mon Sep 17 00:00:00 2001 From: dsc Date: Fri, 9 Oct 2020 02:37:05 +0200 Subject: [PATCH] pass STATIC definition for xcb plugin qt import --- src/CMakeLists.txt | 4 ++++ src/main.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 19021c3..9c9ecc6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -134,6 +134,10 @@ if(HAVE_SYS_PRCTL_H) target_compile_definitions(feather PRIVATE HAVE_SYS_PRCTL_H=1) endif() +if(STATIC) + target_compile_definitions(feather PRIVATE STATIC=1) +endif() + if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") target_compile_definitions(feather PRIVATE QT_NO_DEBUG=1) endif() diff --git a/src/main.cpp b/src/main.cpp index bcabcef..41124d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,7 +14,7 @@ #include -#if defined(Q_OS_LINUX) +#if defined(Q_OS_LINUX) && defined(STATIC) Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) #endif