Doxygen fix so that local paths aren't included in the built documentation.
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user