Skip to content

Commit

Permalink
Fix OS/ARCH match
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Dec 11, 2024
1 parent 96c9cf5 commit 73d288e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ message(STATUS "Detected architecture: ${SYSTEM_ARCH}")
set(WVLET_STATIC_URL "")
set(WVLET_DYNAMIC_URL "")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# # if(SYSTEM_ARCH MATCHES ".*(amd64|x86_64).*" )
if(VCPKG_TARGET_TRIPLET MATCHES "x64-linux")
if(VCPKG_TARGET_TRIPLET MATCHES "x64-linux" OR SYSTEM_ARCH MATCHES ".*(amd64|x86_64).*")
set(WVLET_STATIC_URL "https://github.com/quackscience/wvlet-lib/releases/download/latest/linux-x64_libwvlet.a")
set(WVLET_STATIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third-party/linux-x64_libwvlet.a")
set(WVLET_DYNAMIC_URL "https://github.com/quackscience/wvlet-lib/releases/download/latest/linux-x64_libwvlet.so")
set(WVLET_DYNAMIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third-party/linux-x64_libwvlet.so")
# # elseif(SYSTEM_ARCH MATCHES ".*(arm64|aarch64).*")
elseif(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux")
elseif(VCPKG_TARGET_TRIPLET MATCHES "arm64-linux" OR SYSTEM_ARCH MATCHES ".*(arm64|aarch64).*")
set(WVLET_STATIC_URL "https://github.com/quackscience/wvlet-lib/releases/download/latest/linux-arm64_libwvlet.a")
set(WVLET_STATIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third-party/linux-arm64_libwvlet.a")
set(WVLET_DYNAMIC_URL "https://github.com/quackscience/wvlet-lib/releases/download/latest/linux-arm64_libwvlet.so")
Expand Down

0 comments on commit 73d288e

Please sign in to comment.