summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-22 21:37:54 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-23 15:33:42 +0300
commit31bdb77a270848e2a3cfb2f71e41a0c5d8d44a37 (patch)
tree1ea4b972b29f9c17d8dfade85f563b523d8534f5 /CMakeLists.txt
parent20a17f52d2cd9810ae6cc82337d0ecd05fc36d3b (diff)
downloadtdebase-feat/separate-tsak.tar.gz
tdebase-feat/separate-tsak.zip
Separate WITH_TSAK and BUILD_TSAK flagsfeat/separate-tsak
As for now BUILD_TSAK was used as both: a flag for building the `tsak` binary and to enable/disable tsak support in tdm/kdesktop. The problem is it creates problem with split build (when each sub-package is built independently): if `tsak` is built as a separate package there is no way to enable/disable support for it when building `kdesktop`/`tdm` without also triggerin the build of `tsak` itself. Besides this issue it just violates convention that BUILD_* flags do not conditionally enable functionality in other packages. This commit separates this logic into two different flags: BUILD_TSAK for building the tsak binary and WITH_TSAK for adding support for it to kdesktop and/or tdm. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd4f5102b..b6d199756 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,6 +119,7 @@ option( WITH_SENSORS "Enable lm_sensors support (ksysguard)" ${WITH_ALL_OPTIONS}
option( WITH_TDEHWLIB "Enable TDE hardware library support" ${WITH_ALL_OPTIONS} )
option( WITH_UPOWER "Enable UPOWER support" ${WITH_ALL_OPTIONS} )
option( WITH_ELFICON "Enable ELF embedded metadata support" ${WITH_ALL_OPTIONS} )
+option( WITH_TSAK "Enable Secure Attention Key support via tsak" ${WITH_ALL_OPTIONS} )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
option( WITH_XKB_TRANSLATIONS "Use translations for xkb messages provided by xkeyboard-config" ON )
@@ -157,6 +158,7 @@ option( WITH_XKB_TRANSLATIONS "Use translations for xkb messages provided by xke
# WITH_PCRE2 affects twin/compton-tde
# WITH_SUDO_TDESU_BACKEND affects tdesu
# WITH_SUDO_KONSOLE_SUPER_USER_COMMAND affects launching Konsole super user sessions
+# WITH_TSAK affects kdesktop tdm
# WITH_XKB_TRANSLATIONS affects kxkb
# NOTE: WITH_SHADOW and WITH_PAM shouldn't be set concurrently