Skip to content

Commit

Permalink
Update arch selection for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed Nov 22, 2024
1 parent 9048f71 commit 5c6d946
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/DownloadTileDB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ function(detect_artifact_name OUT_VAR)
SET(${OUT_VAR} TILEDB_MACOS-ARM64 PARENT_SCOPE)
endif()
else() # Linux
SET(${OUT_VAR} TILEDB_LINUX-X86_64 PARENT_SCOPE)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
SET(${OUT_VAR} TILEDB_LINUX-ARM64 PARENT_SCOPE)
else()
SET(${OUT_VAR} TILEDB_LINUX-X86_64 PARENT_SCOPE)
endif()
endif()
endfunction()

Expand Down Expand Up @@ -122,4 +126,4 @@ function(fetch_prebuilt_tiledb)
)
FetchContent_MakeAvailable(tiledb)
set(TileDB_DIR ${tiledb_SOURCE_DIR}/lib/cmake/TileDB PARENT_SCOPE)
endfunction()
endfunction()

0 comments on commit 5c6d946

Please sign in to comment.