diff options
author | 2016-12-12 19:30:04 -0800 | |
---|---|---|
committer | 2016-12-12 19:30:04 -0800 | |
commit | 07328ab9371e93e0c25313bd1ac5f982f65bf971 (patch) | |
tree | 78bf2f777f419935a63c81002a1f31ee346d33c5 | |
parent | 75f421209febe5485866d1b09916fbb04decf643 (diff) | |
download | paludis-07328ab9371e93e0c25313bd1ac5f982f65bf971.tar.gz paludis-07328ab9371e93e0c25313bd1ac5f982f65bf971.tar.xz |
build: doxygen the entire source tree
Previously the CWD for the doxygen run would be
${CMAKE_CURRENT_BINARY_DIRECTORY} which would prevent the documentation from
being generated. This requires tweaking the doxygen.conf.in to ensure that the
output does not clobber the source tree.
-rw-r--r-- | doc/api/cplusplus/CMakeLists.txt | 4 | ||||
-rw-r--r-- | doc/api/cplusplus/doxygen.conf.in | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/cplusplus/CMakeLists.txt b/doc/api/cplusplus/CMakeLists.txt index c3df73e28..20281d2b4 100644 --- a/doc/api/cplusplus/CMakeLists.txt +++ b/doc/api/cplusplus/CMakeLists.txt @@ -24,7 +24,9 @@ if(ENABLE_DOXYGEN) "${CMAKE_CURRENT_SOURCE_DIR}/references.doxygen" "${DOXYGEN_TAG_FILE}" OUTPUT - "${CMAKE_CURRENT_BINARY_DIR}/cplusplus") + "${CMAKE_CURRENT_BINARY_DIR}/cplusplus" + WORKING_DIRECTORY + "${CMAKE_CURRENT_SOURCE_DIR}") add_custom_target(c++-api-docs ALL DEPENDS diff --git a/doc/api/cplusplus/doxygen.conf.in b/doc/api/cplusplus/doxygen.conf.in index ba2094106..d6d015f68 100644 --- a/doc/api/cplusplus/doxygen.conf.in +++ b/doc/api/cplusplus/doxygen.conf.in @@ -38,7 +38,7 @@ PROJECT_NUMBER = "Version @VERSION@" # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. -OUTPUT_DIRECTORY = +OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@ # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output |