summaryrefslogtreecommitdiff
path: root/cmake/DoxygenChecks.cmake
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2022-07-04 21:22:58 +0100
committerRoger Leigh <rleigh@codelibre.net>2022-07-22 16:04:59 +0100
commit9e4c5226ccabf8dc8969c1d37fcb2aa2e47dca75 (patch)
tree72570e210f355eb63800166ea156afcc1b0b02bd /cmake/DoxygenChecks.cmake
parentac11ee0eec577dbf43d26139d135299bdf888f69 (diff)
downloadlibtiff-git-manpage-fixes.tar.gz
libtiff: Add Doxygen and initial Breathe usagemanpage-fixes
Diffstat (limited to 'cmake/DoxygenChecks.cmake')
-rw-r--r--cmake/DoxygenChecks.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/DoxygenChecks.cmake b/cmake/DoxygenChecks.cmake
new file mode 100644
index 00000000..0bbc8226
--- /dev/null
+++ b/cmake/DoxygenChecks.cmake
@@ -0,0 +1,13 @@
+# Check doxygen build log and display any errors or warnings.
+
+message(STATUS "Checking for doxygen errors in ${logfile}")
+
+file(READ "${logfile}" LOG)
+string(LENGTH "${LOG}" LOGLEN)
+
+if(LOGLEN GREATER 0)
+ message(WARNING "Doxygen encountered undocumented code or errors in ${logfile}")
+ message("══════════════════════════════ UNDOCUMENTED CODE ══════════════════════════════")
+ message("${LOG}")
+ message("═════════════════════════════ END UNDOCUMENTED CODE ═══════════════════════════")
+endif()