diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2022-02-17 14:04:55 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2022-02-17 14:12:09 +0100 |
commit | 673d48c7c939f5c5f908f8fcb01ccfb8702e9c75 (patch) | |
tree | cda6ba10a968a148d70a2e02aef5c1794d9e17f3 /doc | |
parent | a3937715ae85a44db767ed2f798497c772264be1 (diff) | |
download | dbus-673d48c7c939f5c5f908f8fcb01ccfb8702e9c75.tar.gz |
cmake: fix for ninja phony cycle related configuring errors
A prefix has been added to the custom target names in docbook-related
macros to fix the reported error:
ninja: error: build.ninja:xxx: multiple rules generate
doc/dbus-xxx.1.html [-w dupbuild=err]
Fixes #377
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 1e3d9a62..6494aab3 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -115,7 +115,7 @@ configure_file(${srcfile} ${_outfile}) DEPENDS ${srcfile} ${CMAKE_BINARY_DIR}/CMakeCache.txt COMMENT "Generating ${outname}" ) - add_custom_target(${outname} DEPENDS ${_outfile}) + add_custom_target(xmldoc-${outname} DEPENDS ${_outfile}) endmacro() # @@ -149,8 +149,8 @@ macro(DOCBOOK _source) DEPENDS ${XSLTPROC_EXECUTABLE} ${_infile} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) - add_custom_target(${_outname} DEPENDS ${_outfile}) - add_dependencies(xmldoc ${_outname}) + add_custom_target(xmldoc-${_outname} DEPENDS ${_outfile}) + add_dependencies(xmldoc xmldoc-${_outname}) install(FILES ${_outfile} DESTINATION ${INSTALL_DIR}) endforeach() endmacro() |