Skip to content

Commit

Permalink
Doxygen.cmake: Two fixes- 1. make dir, 2. final path message
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMasarik-NOAA committed Jan 25, 2024
1 parent 7e424f6 commit bad1af2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cmake/Doxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ function(Doxygen outDir)
COMMENT "Doxygen not found")
return()
endif()
add_custom_target(build-time-dir
ALL
COMMAND ${CMAKE_COMMAND} -E
make_directory ${CMAKE_BINARY_DIR}/${outDir})
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${outDir})
set(DOXYGEN_GENERATE_HTML YES)
set(DOXYGEN_QUIET YES)
set(DOXYGEN_HTML_OUTPUT ${CMAKE_BINARY_DIR}/${outDir})
doxygen_add_docs(doxygen
${CMAKE_CURRENT_SOURCE_DIR}/docs
COMMENT "Generate Doxygen HTML documenation\n"
"Doxygen HTML output: ${CMAKE_BINARY_DIR}/${outDir}")
COMMENT "Generate Doxygen HTML documenation")
message("Doxygen HTML index page: "
${CMAKE_BINARY_DIR}/${outDir}/index.html)
endfunction()

0 comments on commit bad1af2

Please sign in to comment.