Skip to content

Commit

Permalink
fix(cmake): fix go-worker cmake to fetch gpgme from correct folder on…
Browse files Browse the repository at this point in the history
… arm64.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jan 17, 2025
1 parent 171890f commit 9652dc0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cmake/modules/arch.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
execute_process(
COMMAND uname -m
COMMAND sed "s/x86_64/x64/"
COMMAND sed "s/aarch64/arm64/"
OUTPUT_VARIABLE ARCH_output
ERROR_VARIABLE ARCH_error
RESULT_VARIABLE ARCH_result
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(${ARCH_result} EQUAL 0)
set(VCPKG_ARCH ${ARCH_output})
message(STATUS "Target arch: ${VCPKG_ARCH}")
else()
message(
FATAL_ERROR
"Failed to determine target architecture: ${ARCH_error}"
)
endif()

0 comments on commit 9652dc0

Please sign in to comment.