From d99c67e250d719310d499adc49fe0eba00f654bd Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Wed, 30 Aug 2023 16:16:06 -0400 Subject: [PATCH] Add success message --- cmake/modules/DownloadAndCheck.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/modules/DownloadAndCheck.cmake b/cmake/modules/DownloadAndCheck.cmake index c66f9218aa3..3cbd9386ac1 100644 --- a/cmake/modules/DownloadAndCheck.cmake +++ b/cmake/modules/DownloadAndCheck.cmake @@ -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() \ No newline at end of file