Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Oct 22, 2024
2 parents 642e786 + a3222dc commit f69b48a
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 308 deletions.
12 changes: 3 additions & 9 deletions cmake/SphinxGeneration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,9 @@ if(SPHINX_FOUND)
macro(_master_sphinx_target)
string(MAKE_C_IDENTIFIER ${META_PROJECT_NAME} project_id)
string(TOLOWER ${project_id} project_id)
set(master_sphinx_target ${project_id}_master)
set(master_sphinx_target ${project_id})
endmacro()

function(_add_dependecy_to_master module_sphinx_target)
if(${META_PROJECT_ID}_IS_MASTER_PROJECT)
_master_sphinx_target()
add_dependencies(${master_sphinx_target}_sphinx ${module_sphinx_target}_sphinx)
endif()
endfunction()

# 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.
Expand Down Expand Up @@ -77,7 +70,8 @@ if(SPHINX_FOUND)
# Finally add the module sphinx target as a dependency for the overall
# sphinx target
if(${META_PROJECT_ID}_IS_MASTER_PROJECT)
_add_dependecy_to_master(${TARGET_NAME})
_master_sphinx_target()
add_dependencies(${master_sphinx_target}_sphinx ${TARGET_NAME}_sphinx)
endif()
endfunction()

Expand Down
Loading

0 comments on commit f69b48a

Please sign in to comment.