summaryrefslogtreecommitdiff
path: root/databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake
diff options
context:
space:
mode:
authorAdriaan de Groot <adridg@FreeBSD.org>2021-04-22 22:05:11 +0200
committerAdriaan de Groot <adridg@FreeBSD.org>2021-04-22 22:21:05 +0200
commit77112137efe2a4abc440092704df57131f4ff6a6 (patch)
treea4aad882737571a1d330a6d39bd7fb8797091d41 /databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake
parentdatabases/mysql-connector-c: fix configure against CMake 3.20 (diff)
databases/evolution-data-server: fix build for CMake 3.20
This is basically upstream commit c95a70bfeae25ba11fbe50fe759a6cdb29388e44 but re-done independently by me because I fixed first and then looked in source control.
Diffstat (limited to 'databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake')
-rw-r--r--databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake53
1 files changed, 53 insertions, 0 deletions
diff --git a/databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake b/databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake
new file mode 100644
index 000000000000..3652dc21274c
--- /dev/null
+++ b/databases/evolution-data-server/files/patch-cmake_modules_PrintableOptions.cmake
@@ -0,0 +1,53 @@
+--- cmake/modules/PrintableOptions.cmake.orig 2021-04-22 19:58:13 UTC
++++ cmake/modules/PrintableOptions.cmake
+@@ -19,40 +19,40 @@
+ # 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()
+ 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()
+ 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()
+ 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()
+ 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 "")
++ if("${_name}" STREQUAL "")
+ message(FATAL_ERROR "filepath variable name cannot be empty")
+- endif(_name STREQUAL "")
++ endif()
+ set(${_name} ${_default_value} CACHE FILEPATH ${_description})
+ add_printable_variable_bare(${_name})
+ endmacro()