Skip to content

Commit 10dd074

Browse files
committed
Apply patch provided by @bradking (with pre-commit cmake-format auto fixes).
pybind#4503 (comment)
1 parent 52e788b commit 10dd074

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/FindCatch.cmake

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ endfunction()
3636
function(_download_catch version destination_dir)
3737
message(STATUS "Downloading catch v${version}...")
3838
set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp)
39-
file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)
39+
file(
40+
DOWNLOAD ${url} "${destination_dir}/catch.hpp"
41+
STATUS status
42+
LOG log)
4043
list(GET status 0 error)
4144
if(error)
42-
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}")
4347
endif()
4448
set(CATCH_INCLUDE_DIR
4549
"${destination_dir}"

0 commit comments

Comments
 (0)