diff options
author | Brad King <brad.king@kitware.com> | 2015-05-12 13:12:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-12 13:12:43 (GMT) |
commit | 55fe56444f134e676a0b9a54d72dbdb85b573a49 (patch) | |
tree | 7f51a6bfeee921e744e1b6dc1a9389879eadc1e2 /Modules | |
parent | cca3bbde98de7954ebd3bca1966c92d931fe0dab (diff) | |
parent | dcb188363d5faba80664c17e9a4713bbd5c0b372 (diff) | |
download | CMake-55fe56444f134e676a0b9a54d72dbdb85b573a49.zip CMake-55fe56444f134e676a0b9a54d72dbdb85b573a49.tar.gz CMake-55fe56444f134e676a0b9a54d72dbdb85b573a49.tar.bz2 |
Merge topic 'ExternalProject-improve-missing-source-error'
dcb18836 ExternalProject: Improve error when SOURCE_DIR is missing (#15560)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ExternalProject.cmake | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 97bebc0..7cf9d79 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -1866,7 +1866,18 @@ function(_ep_add_download_command name) else() _ep_is_dir_empty("${source_dir}" empty) if(${empty}) - message(SEND_ERROR "error: no download info for '${name}' -- please specify existing/non-empty SOURCE_DIR or one of URL, CVS_REPOSITORY and CVS_MODULE, SVN_REPOSITORY, GIT_REPOSITORY, HG_REPOSITORY or DOWNLOAD_COMMAND") + message(SEND_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" + " * SOURCE_DIR with an existing non-empty directory\n" + " * URL\n" + " * GIT_REPOSITORY\n" + " * HG_REPOSITORY\n" + " * CVS_REPOSITORY and CVS_MODULE\n" + " * SVN_REVISION\n" + " * DOWNLOAD_COMMAND" + ) endif() endif() |