From 72648896a51f35725a8011a79eb61353ad499156 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 24 Apr 2024 15:16:20 +0700 Subject: [PATCH] feat: add status message in `setup_go` function (#29) --- cmake/SetupGo.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/SetupGo.cmake b/cmake/SetupGo.cmake index 8bac6c6..934208f 100644 --- a/cmake/SetupGo.cmake +++ b/cmake/SetupGo.cmake @@ -52,10 +52,12 @@ function(setup_go) if(NOT EXISTS ${GO_EXECUTABLE}) # Download the Go build. + message(STATUS "SetupGo: Downloading https://go.dev/dl/${GO_PACKAGE}...") file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/_deps) file(DOWNLOAD https://go.dev/dl/${GO_PACKAGE} ${CMAKE_BINARY_DIR}/_deps/${GO_PACKAGE}) # Extract the Go build. + message(STATUS "SetupGo: Extracting ${CMAKE_BINARY_DIR}/_deps/${GO_PACKAGE}...") file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/_deps/${GO_BUILD}) execute_process( COMMAND tar -xf ${CMAKE_BINARY_DIR}/_deps/${GO_PACKAGE} -C ${CMAKE_BINARY_DIR}/_deps/${GO_BUILD}