[evolution] M!67 - CMake: Add the enumeration of possible values for WITH_ENCHANT_VERSION



commit 16357deb952f64b6b6583da6cea8525c987ddef6
Author: Дилян Палаузов <git-dpa aegee org>
Date:   Sat Oct 10 14:40:41 2020 +0300

    M!67 - CMake: Add the enumeration of possible values for WITH_ENCHANT_VERSION
    
    so that cmake-gui shows a list with those values.
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/67

 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b85a20f246..18312658de 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -285,7 +285,9 @@ pkg_check_variable(EDS_SOURCES_DBUS_SERVICE_NAME evolution-data-server-1.2 sourc
 # Enchant - support both, but better to use the same as the dependencies (gspell, webkitgtk+,...)
 # ******************************
 
-add_printable_variable(WITH_ENCHANT_VERSION "Set Enchant version to use, values are: 'auto' (default), 1 or 
2" "auto")
+add_printable_variable(WITH_ENCHANT_VERSION "Set Enchant version to use" "auto")
+set(enchant_version_values auto 1 2)
+set_property(CACHE WITH_ENCHANT_VERSION PROPERTY STRINGS ${enchant_version_values})
 
 if(WITH_ENCHANT_VERSION STREQUAL "1")
        pkg_check_modules(ENCHANT REQUIRED enchant>=${enchant1_minimum_version})


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]