From b64d07366f42fed7052af485bac53545be3031b5 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Sat, 27 Jul 2024 19:43:29 +0200 Subject: [PATCH] exclude doc from ALL --- doxygen.cmake | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doxygen.cmake b/doxygen.cmake index 4793e1c90..7eaeaf8ca 100644 --- a/doxygen.cmake +++ b/doxygen.cmake @@ -518,18 +518,22 @@ macro(_SETUP_PROJECT_DOCUMENTATION) endif(DOXYGEN_DOT_FOUND) # Teach CMake how to generate the documentation. - if(NOT TARGET doc) - add_custom_target(doc ALL COMMENT "Generating Doxygen documentation") - endif() if(MSVC) # FIXME: it is impossible to trigger documentation installation at # install, so put the target in ALL instead. + if(NOT TARGET doc) + add_custom_target(doc ALL COMMENT "Generating Doxygen documentation") + endif() add_custom_target( - ${PROJECT_NAME}-doc ALL + ${PROJECT_NAME}-doc COMMAND ${DOXYGEN_EXECUTABLE} ${JRL_CMAKEMODULE_DOXYFILE_PATH} WORKING_DIRECTORY doc COMMENT "Generating Doxygen documentation") else(MSVC) + if(NOT TARGET doc) + add_custom_target(doc COMMENT "Generating Doxygen documentation") + endif() + add_custom_target( ${PROJECT_NAME}-doc COMMAND ${DOXYGEN_EXECUTABLE} ${JRL_CMAKEMODULE_DOXYFILE_PATH}