doxygen: Use relative paths in generated docs

Updated cmake to use strip the full path to the base UPM directory
from generated documentation.  This removes the build server full-
path from UPM documentation.

Old html:

upm: /iotdk/jenkins/workspace/upm-doc-stable/src/moisture/moisture.h File Reference

New html:

upm: src/moisture/moisture.h File Reference

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2017-03-28 11:35:11 -07:00
parent 01f9dd2f41
commit 8262a4203b
2 changed files with 4 additions and 1 deletions

View File

@ -297,6 +297,9 @@ endif()
if (BUILDDOC)
# Add a target to generate API documentation with Doxygen
find_package (Doxygen REQUIRED)
# Set the full path to documenation (used by Doxygen STRIP_FROM_PATH) to
# generate html documentation with relative paths
set (DOXYGEN_STRIP_FROM_PATH ${PROJECT_SOURCE_DIR})
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/doxy/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
if (BUILDSWIGJAVA)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/doxy/Doxyfile.java.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile-java @ONLY)