]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: rename tristateoption() to add_auto_option() and make signature compatible...
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 18 May 2020 10:02:36 +0000 (12:02 +0200)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Jun 2020 18:13:47 +0000 (18:13 +0000)
cmake/modules/Macros.cmake
doc/CMakeLists.txt

index c594747e3b719ec1e010071b095e36658ca74e5e..741d0c1c3879234e949a0ba82ea43628778ca89d 100644 (file)
@@ -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()
index 1f47fa2acc06db4db4373a7dfea583ef0b0cf176..4ffe7779e54d88d11b79150fc200ee43a688daa7 100644 (file)
@@ -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)