Skip to content

Commit 5994068

Browse files
fix: print cmake error output when curl build fails
The curl cmake configure has been failing on CI since PR #173 but the actual error was hidden — captured in a variable but never printed. This matches the error reporting pattern used by libzip.cmake and arrow.cmake. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 28a7616 commit 5994068

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

libraries.cmake/curl.cmake

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ file(APPEND ${LOGFILE} ${_CURL_CMAKE_OUT})
6060
file(APPEND ${LOGFILE} ${_CURL_CMAKE_ERR})
6161

6262
if (NOT _CURL_CMAKE_SUCCESS EQUAL 0)
63-
message(FATAL_ERROR "Generating curl build system .. failed")
63+
message(STATUS "Generating curl build system .. failed")
64+
message(STATUS "Output: ${_CURL_CMAKE_OUT}")
65+
message(STATUS "Error: ${_CURL_CMAKE_ERR}")
66+
message(FATAL_ERROR "curl configuration failed. Check the log file for details: ${LOGFILE}")
6467
else()
6568
message(STATUS "Generating curl build system .. done")
6669
endif()
@@ -84,7 +87,10 @@ file(APPEND ${LOGFILE} ${_CURL_BUILD_OUT})
8487
file(APPEND ${LOGFILE} ${_CURL_BUILD_ERR})
8588

8689
if (NOT _CURL_BUILD_SUCCESS EQUAL 0)
87-
message(FATAL_ERROR "Building curl (Release) .. failed")
90+
message(STATUS "Building curl (Release) .. failed")
91+
message(STATUS "Output: ${_CURL_BUILD_OUT}")
92+
message(STATUS "Error: ${_CURL_BUILD_ERR}")
93+
message(FATAL_ERROR "curl build failed. Check the log file for details: ${LOGFILE}")
8894
else()
8995
message(STATUS "Building curl (Release) .. done")
9096
endif()

0 commit comments

Comments
 (0)