Skip to content

Commit

Permalink
feat: add status message in setup_go function (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal authored Apr 24, 2024
1 parent 0b81423 commit 7264889
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/SetupGo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7264889

Please sign in to comment.