1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Skip CLD3 integration because the library is currently unpackaged in Debian
Bug-Debian: https://bugs.debian.org/1024816
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: Sun, 04 Dec 2022 22:58:28 +0300
--- a/Telegram/lib_spellcheck/CMakeLists.txt
+++ b/Telegram/lib_spellcheck/CMakeLists.txt
@@ -28,7 +28,7 @@ if (APPLE)
endif()
set(use_cld3 0)
-if (LINUX OR DESKTOP_APP_USE_CLD3)
+if (DESKTOP_APP_USE_CLD3)
set(use_cld3 1)
endif()
--- a/cmake/variables.cmake
+++ b/cmake/variables.cmake
@@ -33,7 +33,7 @@ option(DESKTOP_APP_DISABLE_AUTOUPDATE "D
option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)
option(DESKTOP_APP_ASAN "Enable address sanitizer" OFF)
cmake_dependent_option(DESKTOP_APP_USE_ENCHANT "Use Enchant instead of bundled Hunspell." OFF LINUX OFF)
-cmake_dependent_option(DESKTOP_APP_USE_CLD3 "Disable system text language recognition and use bundled cld3 only." OFF APPLE ON)
+cmake_dependent_option(DESKTOP_APP_USE_CLD3 "Disable system text language recognition and use bundled cld3 only." OFF "APPLE OR LINUX" ON)
cmake_dependent_option(DESKTOP_APP_NO_PDB "Disable PDB file generation." OFF WIN32 OFF)
cmake_dependent_option(DESKTOP_APP_DISABLE_JEMALLOC "Disable jemalloc, use system malloc." OFF "LINUX; NOT DESKTOP_APP_ASAN" ON)
@@ -53,7 +53,7 @@ if (WIN32
endif()
set(add_cld3_library 0)
-if (LINUX OR DESKTOP_APP_USE_CLD3)
+if (DESKTOP_APP_USE_CLD3)
set(add_cld3_library 1)
endif()
|