summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2020-05-18 12:02:36 +0200
committerSimon McVittie <smcv@collabora.com>2020-06-10 18:13:47 +0000
commitab404c5ffb105940dd7cadeadd40176490bc7dcd (patch)
tree74edef6103149f37c6f20448890caeea6dfad61f /cmake
parent3f3368b4902d8b0dd3c85eb9628d55424ab42cfb (diff)
downloaddbus-ab404c5ffb105940dd7cadeadd40176490bc7dcd.tar.gz
cmake: rename tristateoption() to add_auto_option() and make signature compatible to option()
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/Macros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/Macros.cmake b/cmake/modules/Macros.cmake
index c594747e..741d0c1c 100644
--- a/cmake/modules/Macros.cmake
+++ b/cmake/modules/Macros.cmake
@@ -204,11 +204,11 @@ endmacro()
#
# provide option with three states AUTO, ON, OFF
#
-macro(tristateoption _name _default _text)
+macro(add_auto_option _name _text _default)
if(NOT DEFINED ${_name})
set(${_name} ${_default} CACHE STRING "${_text}" FORCE)
else()
set(${_name} ${_default} CACHE STRING "${_text}")
endif()
set_property(CACHE ${_name} PROPERTY STRINGS AUTO ON OFF)
-endmacro(tristateoption)
+endmacro()