]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Cleanup dbus.devhelp2 make target pathes
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 25 Jan 2019 17:57:16 +0000 (18:57 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 13 Mar 2019 09:49:54 +0000 (10:49 +0100)
Use absolute paths to avoid confusion about where
the associated file is located.

doc/CMakeLists.txt

index 399e531378b9a16b07a1795f679a66575e46b2cf..ea6535474e5d1f54d628cb5ce19c11cc51ac215c 100644 (file)
@@ -40,10 +40,14 @@ endif()
 
 if(DBUS_HAVE_XSLTPROC)
     add_custom_command(
-        OUTPUT dbus.devhelp2
-        COMMAND ${XSLTPROC_EXECUTABLE} -o dbus.devhelp2 ${CMAKE_CURRENT_SOURCE_DIR}/doxygen_to_devhelp.xsl api/xml/index.xml
-        DEPENDS doxygen_to_devhelp.xsl api/html/index.html
-        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+        OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2
+        COMMAND ${XSLTPROC_EXECUTABLE}
+            -o ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2
+            ${CMAKE_CURRENT_SOURCE_DIR}/doxygen_to_devhelp.xsl
+            ${CMAKE_CURRENT_BINARY_DIR}/api/xml/index.xml
+        DEPENDS
+            ${CMAKE_CURRENT_SOURCE_DIR}/doxygen_to_devhelp.xsl
+            ${CMAKE_CURRENT_BINARY_DIR}/api/html/index.html
     )
     add_custom_target(devhelp2
         DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/api/html/index.html ${CMAKE_CURRENT_BINARY_DIR}/dbus.devhelp2