summarylogtreecommitdiffstats
path: root/c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff
diff options
context:
space:
mode:
authorTom Hacohen2021-05-02 15:09:48 +0300
committerTom Hacohen2021-05-02 15:09:48 +0300
commit14c07cffdce74b3c18b8f61c1c385600d4f3d573 (patch)
tree07cdb085dfa3d814fe30df67ff7463af8ed25da2 /c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff
parenta0434ab2f738d6d38c998a1d88f602d9d058f990 (diff)
downloadaur-14c07cffdce74b3c18b8f61c1c385600d4f3d573.tar.gz
Fix build (using upstream patch).
Diffstat (limited to 'c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff')
-rw-r--r--c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff57
1 files changed, 57 insertions, 0 deletions
diff --git a/c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff b/c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff
new file mode 100644
index 00000000000..2dcc1ac54d5
--- /dev/null
+++ b/c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff
@@ -0,0 +1,57 @@
+diff --git a/cmake/modules/PrintableOptions.cmake b/cmake/modules/PrintableOptions.cmake
+index a79419a02ae0aabb6a994789915ba58df21e608f..339f1da4b453e526a7b6db8f7ae98dcc721193c6 100644
+--- a/cmake/modules/PrintableOptions.cmake
++++ b/cmake/modules/PrintableOptions.cmake
+@@ -19,36 +19,44 @@
+ # prints all the build options previously added with the above functions
+
+ macro(add_printable_variable_bare _name)
+- if(_name STREQUAL "")
++ if("${_name}" STREQUAL "")
+ message(FATAL_ERROR "variable name cannot be empty")
+- endif(_name STREQUAL "")
++ endif("${_name}" STREQUAL "")
+ list(APPEND _printable_options ${_name})
+ endmacro()
+
+ macro(add_printable_option _name _description _default_value)
+- if(_name STREQUAL "")
++ if("${_name}" STREQUAL "")
+ message(FATAL_ERROR "option name cannot be empty")
+- endif(_name STREQUAL "")
++ endif("${_name}" STREQUAL "")
+ option(${_name} ${_description} ${_default_value})
+ add_printable_variable_bare(${_name})
+ endmacro()
+
+ macro(add_printable_variable _name _description _default_value)
+- if(_name STREQUAL "")
++ if("${_name}" STREQUAL "")
+ message(FATAL_ERROR "variable name cannot be empty")
+- endif(_name STREQUAL "")
++ endif("${_name}" STREQUAL "")
+ set(${_name} ${_default_value} CACHE STRING ${_description})
+ add_printable_variable_bare(${_name})
+ endmacro()
+
+ macro(add_printable_variable_path _name _description _default_value)
+- if(_name STREQUAL "")
++ if("${_name}" STREQUAL "")
+ message(FATAL_ERROR "path variable name cannot be empty")
+- endif(_name STREQUAL "")
++ endif("${_name}" STREQUAL "")
+ set(${_name} ${_default_value} CACHE PATH ${_description})
+ 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:")
+