diff options
author | Brad King <brad.king@kitware.com> | 2021-04-23 14:22:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-04-23 14:22:51 (GMT) |
commit | 0a48080aeb33e3edac7d2a9f46967dd8051f5eef (patch) | |
tree | 362d3ff87d5fa0c47b77781f9e541dd8b9e08e62 | |
parent | 15a148dec63d04f302b6c0b951104f8eb470ce1c (diff) | |
parent | 298760661f30faf2014f609506f15ff2d3489ddf (diff) | |
download | CMake-0a48080aeb33e3edac7d2a9f46967dd8051f5eef.zip CMake-0a48080aeb33e3edac7d2a9f46967dd8051f5eef.tar.gz CMake-0a48080aeb33e3edac7d2a9f46967dd8051f5eef.tar.bz2 |
Merge topic 'ExternalData-fail-reason'
298760661f ExternalData: Improve error message when we fail to create a file
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !6038
-rw-r--r-- | Modules/ExternalData.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalData.cmake b/Modules/ExternalData.cmake index 1850e74..189374b 100644 --- a/Modules/ExternalData.cmake +++ b/Modules/ExternalData.cmake @@ -949,7 +949,7 @@ function(_ExternalData_link_or_copy src dst) endif() if(result) file(REMOVE "${tmp}") - message(FATAL_ERROR "Failed to create\n ${tmp}\nfrom\n ${obj}") + message(FATAL_ERROR "Failed to create:\n \"${tmp}\"\nfrom:\n \"${obj}\"\nwith error:\n ${result}") endif() # Atomically create/replace the real destination. |