Skip to content

Commit

Permalink
Add success message
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Aug 30, 2023
1 parent b0a5f75 commit d99c67e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/DownloadAndCheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ MACRO(DOWNLOAD_AND_CHECK source destination)
list(GET download_status 0 status_code)
list(GET download_status 1 status_message)

if(NOT (${status_code} EQUAL 0))
if((${status_code} EQUAL 0))
message(STATUS "Download of \"${source}\" successful.")
else()
message(FATAL_ERROR "Download of \"${source}\" failed: ${status_message}")
endif()
ENDMACRO()

0 comments on commit d99c67e

Please sign in to comment.