[mlpack-svn] r16401 - mlpack/trunk/CMake

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Apr 7 10:20:22 EDT 2014


Author: rcurtin
Date: Mon Apr  7 10:20:21 2014
New Revision: 16401

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


Modified:
   mlpack/trunk/CMake/GenerateDoxyfile.cmake

Modified: mlpack/trunk/CMake/GenerateDoxyfile.cmake
==============================================================================
--- mlpack/trunk/CMake/GenerateDoxyfile.cmake	(original)
+++ mlpack/trunk/CMake/GenerateDoxyfile.cmake	Mon Apr  7 10:20:21 2014
@@ -25,5 +25,12 @@
     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-svn mailing list