Skip to content

Commit

Permalink
Add zlib static libs for ARM64 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Aug 17, 2024
1 parent b60a6be commit 2a1084d
Show file tree
Hide file tree
Showing 9 changed files with 4,974 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,17 @@ find_package(QT NAMES Qt6 REQUIRED COMPONENTS ${qtComponents})
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ${qtComponents})

if(MSVC_TOOLSET_VERSION EQUAL 142)
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2019-x64/zlib")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2019-arm64/zlib")
else()
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2019-x64/zlib")
endif()
elseif(MSVC_TOOLSET_VERSION EQUAL 143)
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2022-x64/zlib")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2022-arm64/zlib")
else()
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2022-x64/zlib")
endif()
elseif(MINGW)
list(APPEND CMAKE_PREFIX_PATH "windows/mingw64-x64/zlib")
endif()
Expand Down
Loading

0 comments on commit 2a1084d

Please sign in to comment.