Skip to content

Commit

Permalink
Fix doxygen.cmake (don't setup doxytag when not installing the doc) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmirabel authored and gergondet committed Oct 26, 2017
1 parent ad1077d commit 687a16b
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions doxygen.cmake
Expand Up @@ -184,20 +184,22 @@ MACRO(_SETUP_PROJECT_DOCUMENTATION_FINALIZE)
SET(DOXYGEN_HEADER_NAME "header.html")
ENDIF()

# Find doxytag files
# To ignore this list of tag files, add to doc/Doxyfile.extra.in
# TAGFILES =
STRING(REPLACE "," ";" PKG_REQUIRES "${_PKG_CONFIG_REQUIRES}")
FOREACH(PKG_CONFIG_STRING ${PKG_REQUIRES})
_PARSE_PKG_CONFIG_STRING(${PKG_CONFIG_STRING} LIBRARY_NAME PREFIX)
# If DOXYGENDOCDIR is specified, add a doc path.
IF( DEFINED ${PREFIX}_DOXYGENDOCDIR
AND EXISTS ${${PREFIX}_DOXYGENDOCDIR}/${LIBRARY_NAME}.doxytag)
FILE(RELATIVE_PATH DEP_DOCDIR ${_PKG_CONFIG_DOXYGENDOCDIR} ${${PREFIX}_DOXYGENDOCDIR})

SET(DOXYTAG_ENTRIES "${DOXYTAG_ENTRIES} \"${${PREFIX}_DOXYGENDOCDIR}/${LIBRARY_NAME}.doxytag\"=\"${DEP_DOCDIR}\"")
ENDIF()
ENDFOREACH()
IF(_INSTALL_DOC)
# Find doxytag files
# To ignore this list of tag files, add to doc/Doxyfile.extra.in
# TAGFILES =
STRING(REPLACE "," ";" PKG_REQUIRES "${_PKG_CONFIG_REQUIRES}")
FOREACH(PKG_CONFIG_STRING ${PKG_REQUIRES})
_PARSE_PKG_CONFIG_STRING(${PKG_CONFIG_STRING} LIBRARY_NAME PREFIX)
# If DOXYGENDOCDIR is specified, add a doc path.
IF( DEFINED ${PREFIX}_DOXYGENDOCDIR
AND EXISTS ${${PREFIX}_DOXYGENDOCDIR}/${LIBRARY_NAME}.doxytag)
FILE(RELATIVE_PATH DEP_DOCDIR ${_PKG_CONFIG_DOXYGENDOCDIR} ${${PREFIX}_DOXYGENDOCDIR})

SET(DOXYTAG_ENTRIES "${DOXYTAG_ENTRIES} \"${${PREFIX}_DOXYGENDOCDIR}/${LIBRARY_NAME}.doxytag\"=\"${DEP_DOCDIR}\"")
ENDIF()
ENDFOREACH()
ENDIF()

# Generate Doxyfile.extra.
IF(EXISTS ${PROJECT_SOURCE_DIR}/doc/Doxyfile.extra.in)
Expand Down

0 comments on commit 687a16b

Please sign in to comment.