1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
Date: Tue, 22 Oct 2024 21:15:43 +0200
Subject: Enable -fPIC as default
This should already be default config for Qt5.
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 293004f..c3b784b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,8 @@ option(enable-hwkeyboard "Enable support for the hardware keyboard" ON)
option(enable-dbus-activation "Enable dbus activation support for maliit-server" OFF)
option(with-qt6 "Built with Qt 6 instead of Qt 5" OFF)
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
# Install paths
include(GNUInstallDirs)
|