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



commit 7759950cc3f6819a1269f186ab4958967d05b0c8
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 2 14:25:49 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 a79419a0..ba1c9d0b 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]