From: Ralf Habacker Date: Thu, 20 Feb 2020 10:04:25 +0000 (+0100) Subject: cmake: Don't build dbus.devhelp2 if Doxygen is disabled X-Git-Tag: dbus-1.13.14~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a094728abdb2f164c64454ba2432acf97e1cb26b;p=thirdparty%2Fdbus.git 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. --- 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}