mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-19 21:20:16 -06:00
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.
This commit is contained in:
@@ -1559,8 +1559,10 @@ function(_ep_write_extractfile_script script_filename name filename directory op
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(args STREQUAL "")
|
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")
|
message(FATAL_ERROR
|
||||||
return()
|
"Do not know how to extract '${filename}' -- known types are: "
|
||||||
|
".7z, .tar, .tar.bz2, .tar.gz, .tar.xz, .tbz2, .tgz, .txz and .zip"
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
@@ -2832,7 +2834,7 @@ hash=${hash}
|
|||||||
set(method source_dir)
|
set(method source_dir)
|
||||||
_ep_is_dir_empty("${source_dir}" empty)
|
_ep_is_dir_empty("${source_dir}" empty)
|
||||||
if(${empty})
|
if(${empty})
|
||||||
message(SEND_ERROR
|
message(FATAL_ERROR
|
||||||
"No download info given for '${name}' and its source directory:\n"
|
"No download info given for '${name}' and its source directory:\n"
|
||||||
" ${source_dir}\n"
|
" ${source_dir}\n"
|
||||||
"is not an existing non-empty directory. Please specify one of:\n"
|
"is not an existing non-empty directory. Please specify one of:\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user