diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2020-05-18 12:02:36 +0200 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2020-06-10 18:13:47 +0000 |
commit | ab404c5ffb105940dd7cadeadd40176490bc7dcd (patch) | |
tree | 74edef6103149f37c6f20448890caeea6dfad61f /cmake | |
parent | 3f3368b4902d8b0dd3c85eb9628d55424ab42cfb (diff) | |
download | dbus-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.cmake | 4 |
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() |