-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cmake): fix go-worker cmake to fetch gpgme from correct folder on…
… arm64. Signed-off-by: Federico Di Pierro <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
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(ARCH ${ARCH_output}) | ||
message(STATUS "Target arch: ${ARCH}") | ||
else() | ||
message( | ||
FATAL_ERROR | ||
"Failed to determine target architecture: ${ARCH_error}" | ||
) | ||
endif() | ||
|
||
set(VCPKG_TARGET_TRIPLET "${ARCH}-linux-release") | ||
set(VCPKG_TARGET_TRIPLET "${VCPKG_ARCH}-linux-release") | ||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file") |