Enable PIC for static lib

Otherwise it doesn't link
This commit is contained in:
Nicolas Fella 2023-07-20 16:17:56 +02:00
parent e9063d168d
commit d1d3e47eab

View file

@ -62,6 +62,7 @@ geninterface(${PROJECT_SOURCE_DIR}/plugins/clipboard/clipboardplugin.h devicecli
if ("${QT_MAJOR_VERSION}" STREQUAL "6") if ("${QT_MAJOR_VERSION}" STREQUAL "6")
add_library(kdeconnectinterfaces STATIC) add_library(kdeconnectinterfaces STATIC)
set_property(TARGET kdeconnectinterfaces PROPERTY POSITION_INDEPENDENT_CODE ON)
else() else()
add_library(kdeconnectinterfaces) add_library(kdeconnectinterfaces)
endif() endif()