Skip to content

Commit

Permalink
[cmake] Fix issue with Doxygen output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Aug 2, 2024
1 parent d37ab42 commit c16575c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ endif()

find_package(Doxygen REQUIRED)

# Set input and output directories
set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR}/c++)
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/doxygen)

# Configure Doxyfile
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)

Expand All @@ -61,6 +57,7 @@ add_custom_target(doxygen ALL
COMMENT "Generating Doxygen documentation"
VERBATIM
)
add_dependencies(doxygen ${PROJECT_NAME}_docs_sphinx)

# ---------------------------------
# Install
Expand Down
4 changes: 2 additions & 2 deletions doc/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.

OUTPUT_DIRECTORY = html/doxygen
OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@/html/doxygen

# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
# sub-directories (in 2 levels) under the output directory of each output format
Expand Down Expand Up @@ -2733,4 +2733,4 @@ GENERATE_LEGEND = YES
# files.
# The default value is: YES.

DOT_CLEANUP = YES
DOT_CLEANUP = YES

0 comments on commit c16575c

Please sign in to comment.