From: Antonio Ospite Date: Wed, 28 Mar 2012 08:43:04 +0000 (+0200) Subject: doc: use ${DOC_OUTPUT_PATH} in the targets once we have it defined X-Git-Tag: v0.1.1~1 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/6a3e79b792a45688e555394337273061502752c4?ds=inline doc: use ${DOC_OUTPUT_PATH} in the targets once we have it defined --- diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index c1995f7..5a7d9cb 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,7 +5,7 @@ if(DOXYGEN_FOUND) add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + WORKING_DIRECTORY ${DOC_OUTPUT_PATH} COMMENT "Generating API documentation with Doxygen" VERBATIM ) diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt index 0083f4a..17549bf 100644 --- a/doc/man/CMakeLists.txt +++ b/doc/man/CMakeLists.txt @@ -2,9 +2,9 @@ find_package(Asciidoc) if(ASCIIDOC_FOUND) add_custom_target(manpages - ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/am7xxx-play.1.txt -D ${CMAKE_CURRENT_BINARY_DIR} - COMMAND ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/picoproj.1.txt -D ${CMAKE_CURRENT_BINARY_DIR} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/am7xxx-play.1.txt -D ${DOC_OUTPUT_PATH}/man + COMMAND ${ASCIIDOC_A2X_EXECUTABLE} -f manpage ${CMAKE_CURRENT_SOURCE_DIR}/picoproj.1.txt -D ${DOC_OUTPUT_PATH}/man + WORKING_DIRECTORY ${DOC_OUTPUT_PATH}/man COMMENT "Generating man pages with Asciidoc" VERBATIM )