summaryrefslogtreecommitdiff
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-05-22 12:43:43 +1000
committerCraig Scott <craig.scott@crascit.com>2022-05-23 07:36:04 +1000
commit5c021c835522d2471ff3c9ddb6dc525e0d826b0e (patch)
tree01eb5a527571ceb5047017be15e2602df457aedd /Modules/ExternalProject.cmake
parentc97fd9f06576722d760a172110f250f4672a3855 (diff)
downloadcmake-5c021c835522d2471ff3c9ddb6dc525e0d826b0e.tar.gz
ExternalProject: Replace SEND_ERROR with FATAL_ERROR
The one remaining SEND_ERROR is still needed because further messages must be written before a final FATAL_ERROR on that code path.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 707de88a86..809ee16590 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1559,8 +1559,10 @@ function(_ep_write_extractfile_script script_filename name filename directory op
endif()
if(args STREQUAL "")
- message(SEND_ERROR "error: do not know how to extract '${filename}' -- known types are .7z, .tar, .tar.bz2, .tar.gz, .tar.xz, .tbz2, .tgz, .txz and .zip")
- return()
+ message(FATAL_ERROR
+ "Do not know how to extract '${filename}' -- known types are: "
+ ".7z, .tar, .tar.bz2, .tar.gz, .tar.xz, .tbz2, .tgz, .txz and .zip"
+ )
endif()
configure_file(
@@ -2832,7 +2834,7 @@ hash=${hash}
set(method source_dir)
_ep_is_dir_empty("${source_dir}" empty)
if(${empty})
- message(SEND_ERROR
+ message(FATAL_ERROR
"No download info given for '${name}' and its source directory:\n"
" ${source_dir}\n"
"is not an existing non-empty directory. Please specify one of:\n"