diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-02-27 11:30:13 -0500 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2017-02-27 11:33:31 -0500 |
commit | 99d6de6c1a5871ba03fa008c984cd5408940c3cd (patch) | |
tree | 0159a0fb2ba602079d9317d5b00a9cb0a999412e /Modules/ExternalProject.cmake | |
parent | cdb6d7df970fcaaf6cda1bef9955351222e1bcde (diff) | |
download | cmake-99d6de6c1a5871ba03fa008c984cd5408940c3cd.tar.gz |
ExternalProject: only append `COMMAND` if actually adding a command
Fixes #16544.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r-- | Modules/ExternalProject.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 00781d6513..97438e638c 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -1987,11 +1987,10 @@ function(_ep_add_download_command name) set(comment "Performing download step (${steps}) for '${name}'") _ep_write_verifyfile_script("${stamp_dir}/verify-${name}.cmake" "${file}" "${hash}") endif() - list(APPEND cmd ${CMAKE_COMMAND} -P ${stamp_dir}/verify-${name}.cmake - COMMAND) + list(APPEND cmd ${CMAKE_COMMAND} -P ${stamp_dir}/verify-${name}.cmake) if (NOT no_extract) _ep_write_extractfile_script("${stamp_dir}/extract-${name}.cmake" "${name}" "${file}" "${source_dir}") - list(APPEND cmd ${CMAKE_COMMAND} -P ${stamp_dir}/extract-${name}.cmake) + list(APPEND cmd COMMAND ${CMAKE_COMMAND} -P ${stamp_dir}/extract-${name}.cmake) else () set_property(TARGET ${name} PROPERTY _EP_DOWNLOADED_FILE ${file}) endif () |