浏览代码

ExternalProject: Improve URL_HASH argument description

The previous documentation suggested

  ALGO=MD5=d7a3dc7757a35df3dbb890f7dee0976b

for example.
Matt McCormick 7 年之前
父节点
当前提交
470ff56e5a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Modules/ExternalProject.cmake

+ 3 - 3
Modules/ExternalProject.cmake

@@ -133,9 +133,9 @@ External Project Definition
         is determined by inspecting the actual content rather than using logic
         is determined by inspecting the actual content rather than using logic
         based on the file extension.
         based on the file extension.
 
 
-      ``URL_HASH ALGO=<value>``
-        Hash of the archive file to be downloaded. The ``<value>`` should be of
-        the form ``algo=hashValue`` where ``algo`` can be any of the hashing
+      ``URL_HASH <algo>=<hashValue>``
+        Hash of the archive file to be downloaded. The argument should be of
+        the form ``<algo>=<hashValue>`` where ``algo`` can be any of the hashing
         algorithms supported by the :command:`file()` command. Specifying this
         algorithms supported by the :command:`file()` command. Specifying this
         option is strongly recommended for URL downloads, as it ensures the
         option is strongly recommended for URL downloads, as it ensures the
         integrity of the downloaded content. It is also used as a check for a
         integrity of the downloaded content. It is also used as a check for a