summaryrefslogtreecommitdiff
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:13:22 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:13:22 +0900
commit07408dd83a3637a29a56a7d5fbe49f63cbb41e8f (patch)
treea75b33590f24c25eea1304047db385fdd0d5a45b /Modules/ExternalProject.cmake
parent990f644abd85c36c7bfec6c18255af2683475363 (diff)
downloadcmake-07408dd83a3637a29a56a7d5fbe49f63cbb41e8f.tar.gz
cmake-07408dd83a3637a29a56a7d5fbe49f63cbb41e8f.tar.bz2
cmake-07408dd83a3637a29a56a7d5fbe49f63cbb41e8f.zip
Imported Upstream version 3.11.4upstream/3.11.4
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index db19691de..0c5b33f7e 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -133,9 +133,9 @@ External Project Definition
is determined by inspecting the actual content rather than using logic
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
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
@@ -1686,7 +1686,7 @@ function(_ep_command_line_to_initial_cache var args force)
foreach(line ${args})
if("${line}" MATCHES "^-D(.*)")
set(line "${CMAKE_MATCH_1}")
- if(setArg)
+ if(NOT "${setArg}" STREQUAL "")
# This is required to build up lists in variables, or complete an entry
string(APPEND setArg "${accumulator}\" CACHE ${type} \"Initial cache\" ${forceArg})")
string(APPEND script_initial_cache "\n${setArg}")