From 8a8b58cf33eeca12d806365fe7b5da1c035e6740 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 16 Jun 2021 22:43:15 +0200 Subject: [PATCH] doc: cmake: cleanup doxygen section Cleanup doxygen section and simplify target. Signed-off-by: Gerard Marull-Paretas --- doc/CMakeLists.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index dfacd4f690..875fb8adb7 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -61,18 +61,21 @@ endif() # Internal variables. set(ALLSPHINXOPTS -d ${CMAKE_CURRENT_BINARY_DIR}/doctrees ${SPHINXOPTS}) +set(RST_OUT ${CMAKE_CURRENT_BINARY_DIR}/src) + +#------------------------------------------------------------------------------- +# Doxygen (standalone) + +set(DOXY_OUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen) set(DOXYFILE_IN ${CMAKE_CURRENT_LIST_DIR}/zephyr.doxyfile.in) set(DOXYFILE_OUT ${CMAKE_CURRENT_BINARY_DIR}/zephyr.doxyfile) -set(DOXY_OUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen) -set(RST_OUT ${CMAKE_CURRENT_BINARY_DIR}/src) configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY) add_custom_target( doxygen - COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYFILE_OUT} - WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} - COMMENT "Running ${DOXYGEN_EXECUTABLE}" + COMMAND + ${DOXYGEN_EXECUTABLE} ${DOXYFILE_OUT} ) add_custom_target(