We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e788b commit 10dd074Copy full SHA for 10dd074
tools/FindCatch.cmake
@@ -36,10 +36,14 @@ endfunction()
36
function(_download_catch version destination_dir)
37
message(STATUS "Downloading catch v${version}...")
38
set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp)
39
- file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)
+ file(
40
+ DOWNLOAD ${url} "${destination_dir}/catch.hpp"
41
+ STATUS status
42
+ LOG log)
43
list(GET status 0 error)
44
if(error)
- message(FATAL_ERROR "Could not download ${url}")
45
+ string(REPLACE "\n" "\n " log " ${log}")
46
+ message(FATAL_ERROR "Could not download URL:\n" " ${url}\n" "Log:\n" "${log}")
47
endif()
48
set(CATCH_INCLUDE_DIR
49
"${destination_dir}"
0 commit comments