From: Ralf Habacker Date: Tue, 2 Apr 2024 10:53:29 +0000 (+0200) Subject: cmake: Inclusion of a link in html overview file corrected X-Git-Tag: dbus-1.15.10~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b58ca0e1472c17cd7252c4e1090140b673acea3c;p=thirdparty%2Fdbus.git cmake: Inclusion of a link in html overview file corrected The link for api documentation is now only inserted into the html overview file when it is built. --- diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index fbcd84ba3..cbcbf7bdc 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -197,6 +197,11 @@ add_docbook(dbus-tutorial SOURCE dbus-tutorial.xml FORMATS html) # # handle html index file # +if(DBUS_ENABLE_DOXYGEN_DOCS) + set(DBUS_APIDOC_LINK "libdbus API Documentation") +else() + set(DBUS_APIDOC_LINK "") +endif() configure_file(index.html.in ${CMAKE_CURRENT_BINARY_DIR}/index.html) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/index.html DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/dbus) diff --git a/doc/index.html.in b/doc/index.html.in index feca9fc8d..eb61d061a 100644 --- a/doc/index.html.in +++ b/doc/index.html.in @@ -36,7 +36,7 @@ application manuals D-Bus Test Plan

-libdbus API Documentation +@DBUS_APIDOC_LINK@ D-Bus Daemon manual