From bad1af26addecf930115a2c7aecf3f74a7d025bb Mon Sep 17 00:00:00 2001 From: Matthew Masarik Date: Thu, 25 Jan 2024 22:07:12 +0000 Subject: [PATCH] Doxygen.cmake: Two fixes- 1. make dir, 2. final path message --- cmake/Doxygen.cmake | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmake/Doxygen.cmake b/cmake/Doxygen.cmake index 78fee7a6c..a2dcfd3cc 100644 --- a/cmake/Doxygen.cmake +++ b/cmake/Doxygen.cmake @@ -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()