| From c10dfc56a7e02000cfcbbef5f72c668e47b40ee7 Mon Sep 17 00:00:00 2001 |
| From: Benedikt Bitterli <mail@noobody.org> |
| Date: Sun, 22 Nov 2015 12:01:59 +0100 |
| Subject: [PATCH 1/4] Use relative paths for doxygen outputs |
| |
| --- |
| doc/CMakeLists.txt | 2 ++ |
| doc/Doxyfile.in | 2 +- |
| doc/Doxyfile.zh-cn.in | 2 +- |
| 3 files changed, 4 insertions(+), 2 deletions(-) |
| |
| diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt |
| index c1f165a..60e0e30 100644 |
| --- a/doc/CMakeLists.txt |
| +++ b/doc/CMakeLists.txt |
| @@ -7,6 +7,8 @@ ELSE() |
| file(GLOB MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../doc/*.md) |
| list(APPEND MARKDOWN_DOC ${CMAKE_CURRENT_LIST_DIR}/../readme.md) |
| |
| + file(RELATIVE_PATH DOC_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../ ${CMAKE_CURRENT_BINARY_DIR}) |
| + |
| CONFIGURE_FILE(Doxyfile.in Doxyfile @ONLY) |
| CONFIGURE_FILE(Doxyfile.zh-cn.in Doxyfile.zh-cn @ONLY) |
| |
| diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in |
| index b806205..ffed423 100644 |
| --- a/doc/Doxyfile.in |
| +++ b/doc/Doxyfile.in |
| @@ -58,7 +58,7 @@ PROJECT_LOGO = |
| # entered, it will be relative to the location where doxygen was started. If |
| # left blank the current directory will be used. |
| |
| -OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@ |
| +OUTPUT_DIRECTORY = @DOC_OUTPUT_DIRECTORY@ |
| |
| # 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 format and |
| diff --git a/doc/Doxyfile.zh-cn.in b/doc/Doxyfile.zh-cn.in |
| index 873022a..10d3c47 100644 |
| --- a/doc/Doxyfile.zh-cn.in |
| +++ b/doc/Doxyfile.zh-cn.in |
| @@ -58,7 +58,7 @@ PROJECT_LOGO = |
| # entered, it will be relative to the location where doxygen was started. If |
| # left blank the current directory will be used. |
| |
| -OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@ |
| +OUTPUT_DIRECTORY = @DOC_OUTPUT_DIRECTORY@ |
| |
| # 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 format and |
| -- |
| 2.5.0 |
| |