diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-05-22 02:43:43 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-05-22 21:36:04 (GMT) |
commit | 5c021c835522d2471ff3c9ddb6dc525e0d826b0e (patch) | |
tree | 01eb5a527571ceb5047017be15e2602df457aedd | |
parent | c97fd9f06576722d760a172110f250f4672a3855 (diff) | |
download | CMake-5c021c835522d2471ff3c9ddb6dc525e0d826b0e.zip CMake-5c021c835522d2471ff3c9ddb6dc525e0d826b0e.tar.gz CMake-5c021c835522d2471ff3c9ddb6dc525e0d826b0e.tar.bz2 |
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.
-rw-r--r-- | Modules/ExternalProject.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 707de88..809ee16 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" |