[mlpack-git] master, mlpack-1.0.x: Doxygen fix so that local paths aren't included in the built documentation. (0d106c9)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:45:52 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 0d106c9efdbc8bbfacbf5889f35226b2ca3ac4e3
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Apr 7 14:20:21 2014 +0000
Doxygen fix so that local paths aren't included in the built documentation.
>---------------------------------------------------------------
0d106c9efdbc8bbfacbf5889f35226b2ca3ac4e3
CMake/GenerateDoxyfile.cmake | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/CMake/GenerateDoxyfile.cmake b/CMake/GenerateDoxyfile.cmake
index 4b00958..da37beb 100644
--- a/CMake/GenerateDoxyfile.cmake
+++ b/CMake/GenerateDoxyfile.cmake
@@ -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}")
More information about the mlpack-git
mailing list