Doxygen fix so that local paths aren't included in the built documentation.

This commit is contained in:
Ryan Curtin
2014-04-07 14:20:21 +00:00
parent dde19f38a6
commit 0d106c9efd
+8 -1
View File
@@ -25,5 +25,12 @@ string(REPLACE
DOXYFILE_AUXVAR "${DOXYFILE_CONTENTS}"
)
# Change the STRIP_FROM_PATH so that it works right even in the build directory;
# otherwise, every file will have the full path in it.
string(REGEX REPLACE
"(STRIP_FROM_PATH[ ]*=) ./"
"\\1 ${CMAKE_CURRENT_SOURCE_DIR}/"
DOXYFILE_CONTENTS ${DOXYFILE_AUXVAR})
# Save the Doxyfile to its new location.
file(WRITE "${DESTDIR}/Doxyfile" "${DOXYFILE_AUXVAR}")
file(WRITE "${DESTDIR}/Doxyfile" "${DOXYFILE_CONTENTS}")