[evolution-data-server] PrintableOptions.cmake: Sync the file with Evolution changes



commit 2faecfeebccad5bced580e99be2cfb73a849a6ff
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 2 14:22:51 2020 +0200

    PrintableOptions.cmake: Sync the file with Evolution changes
    
    After https://gitlab.gnome.org/GNOME/evolution/-/issues/934

 cmake/modules/PrintableOptions.cmake | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/cmake/modules/PrintableOptions.cmake b/cmake/modules/PrintableOptions.cmake
index a79419a02..ba1c9d0b7 100644
--- a/cmake/modules/PrintableOptions.cmake
+++ b/cmake/modules/PrintableOptions.cmake
@@ -49,6 +49,14 @@ macro(add_printable_variable_path _name _description _default_value)
        add_printable_variable_bare(${_name})
 endmacro()
 
+macro(add_printable_variable_filepath _name _description _default_value)
+       if(_name STREQUAL "")
+               message(FATAL_ERROR "filepath variable name cannot be empty")
+       endif(_name STREQUAL "")
+       set(${_name} ${_default_value} CACHE FILEPATH ${_description})
+       add_printable_variable_bare(${_name})
+endmacro()
+
 function(print_build_options)
        message(STATUS "Configure options:")
 


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