From a094728abdb2f164c64454ba2432acf97e1cb26b Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 20 Feb 2020 11:04:25 +0100 Subject: [PATCH] cmake: Don't build dbus.devhelp2 if Doxygen is disabled Previously this would be attempted whenever xsltproc was found, but would fail if Doxygen documentation was disabled. --- doc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index c7b34a440..6d4d99111 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -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} -- 2.47.3