Skip to content

Commit

Permalink
fix: generate doc only if project is master
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Mar 6, 2022
1 parent efd7912 commit 82190fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/DoxGeneration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ if(DOXYGEN_FOUND)
endfunction()

function(asap_with_doxygen)
# Nothing will be done unless the module is being built as a master project.
if(NOT ${META_PROJECT_ID}_IS_MASTER_PROJECT)
return()
endif()

set(options)
set(oneValueArgs MODULE_NAME VERSION TITLE BRIEF INPUT_PATH)
set(multiValueArgs)
Expand Down
5 changes: 5 additions & 0 deletions cmake/SphinxGeneration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ if(SPHINX_FOUND)

# The macro to add a submodule as a sphinx target.
function(asap_with_sphinx TARGET_NAME)
# Nothing will be done unless the module is being built as a master project.
if(NOT ${META_PROJECT_ID}_IS_MASTER_PROJECT)
return()
endif()

# Setup work directory for the target module
set(SPHINX_TARGET_WORKDIR "${SPHINX_BUILD_DIR}/${TARGET_NAME}")
if(NOT EXISTS "${SPHINX_TARGET_WORKDIR}")
Expand Down

0 comments on commit 82190fa

Please sign in to comment.