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



commit a6747d79d44134433f174bd6a7dea2a8c69c63a6
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jun 2 14:26:23 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 a79419a..ba1c9d0 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]