summaryrefslogtreecommitdiff
path: root/CMake/download_html_manual.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/download_html_manual.cmake')
-rw-r--r--CMake/download_html_manual.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/CMake/download_html_manual.cmake b/CMake/download_html_manual.cmake
new file mode 100644
index 00000000..8128bfe1
--- /dev/null
+++ b/CMake/download_html_manual.cmake
@@ -0,0 +1,16 @@
+#
+# CMake script to fetch the current HTML manual
+#
+message (STATUS "file: ${URL}/${NAME}")
+file (
+ DOWNLOAD ${URL}/${NAME} contrib/${NAME}
+ TIMEOUT 120
+ STATUS manual_STATUS
+ LOG manual_LOG
+ SHOW_PROGRESS
+ )
+list (GET manual_STATUS 0 manual_RC)
+if (manual_RC)
+ message (WARNING "${manual_STATUS}")
+ message (FATAL_ERROR "${manual_LOG}")
+endif (manual_RC)