From d1d3e47eab2fbc6ae768f7d15334d65f22658295 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 20 Jul 2023 16:17:56 +0200 Subject: [PATCH] Enable PIC for static lib Otherwise it doesn't link --- interfaces/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index fa40f3361..aa7d81e43 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -62,6 +62,7 @@ geninterface(${PROJECT_SOURCE_DIR}/plugins/clipboard/clipboardplugin.h devicecli if ("${QT_MAJOR_VERSION}" STREQUAL "6") add_library(kdeconnectinterfaces STATIC) + set_property(TARGET kdeconnectinterfaces PROPERTY POSITION_INDEPENDENT_CODE ON) else() add_library(kdeconnectinterfaces) endif()