mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-28 13:10:09 +01:00
cmake: rename tristateoption() to add_auto_option() and make signature compatible to option()
This commit is contained in:
parent
3f3368b490
commit
ab404c5ffb
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ add_custom_target(doc ALL)
|
|||
|
||||
if(DOXYGEN_EXECUTABLE)
|
||||
option(DBUS_ENABLE_DOXYGEN_DOCS "build DOXYGEN documentation (requires Doxygen)" ON)
|
||||
tristateoption(ENABLE_QT_HELP AUTO "build qt help documentation (requires qhelpgenerator(-qt5)); set INSTALL_QCH_DIR for custom qch installation path")
|
||||
add_auto_option(ENABLE_QT_HELP "build qt help documentation (requires qhelpgenerator(-qt5)); set INSTALL_QCH_DIR for custom qch installation path" AUTO)
|
||||
endif()
|
||||
|
||||
if(DBUS_ENABLE_DOXYGEN_DOCS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue