]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Don't build dbus.devhelp2 if Doxygen is disabled
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 20 Feb 2020 10:04:25 +0000 (11:04 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 20 Feb 2020 19:02:30 +0000 (20:02 +0100)
Previously this would be attempted whenever xsltproc was found, but
would fail if Doxygen documentation was disabled.

doc/CMakeLists.txt

index c7b34a440f41f659e98ca797d57122d562935ea8..6d4d991117df287e175bb66898c2a92ffa70a5de 100644 (file)
@@ -44,7 +44,7 @@ if(XSLTPROC_EXECUTABLE)
     set(DBUS_HAVE_XSLTPROC 1)
 endif()
 
-if(DBUS_HAVE_XSLTPROC)
+if(DBUS_HAVE_XSLTPROC AND DBUS_ENABLE_DOXYGEN_DOCS)
     add_custom_command(
         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2
         COMMAND ${XSLTPROC_EXECUTABLE}