diff --git a/cmake/DownloadTileDB.cmake b/cmake/DownloadTileDB.cmake index 8db5015bdb..d8aac55961 100644 --- a/cmake/DownloadTileDB.cmake +++ b/cmake/DownloadTileDB.cmake @@ -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() @@ -122,4 +126,4 @@ function(fetch_prebuilt_tiledb) ) FetchContent_MakeAvailable(tiledb) set(TileDB_DIR ${tiledb_SOURCE_DIR}/lib/cmake/TileDB PARENT_SCOPE) -endfunction() \ No newline at end of file +endfunction()