summarylogtreecommitdiffstats
path: root/c75e4e0d2baef67dea73ef1e01fd860692e4c70e.diff
diff options
context:
space:
mode:
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 000000000000..2dcc1ac54d5c
--- /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:")
+