Skip to content

Commit

Permalink
Add support for windows on arm compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastLe9enD committed Jul 7, 2024
1 parent 9867afd commit 249f17e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ enable_NDEBUG(CMAKE_CXX_FLAGS_MINSIZEREL)
enable_NDEBUG(CMAKE_CXX_FLAGS_RELWITHDEBINFO)

if (WIN32)
add_compile_options(/DUSE_SSE2 /DNOMINMAX /wd4996 /wd4267 /wd4244)
add_compile_options(/DNOMINMAX /wd4996 /wd4267 /wd4244)

if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)")
add_compile_options(/arch:SSE2)
add_compile_options(/DUSE_SSE2 /arch:SSE2)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(arm64)|(ARM64)")
add_compile_options(-DUSE_NEON)
else()
message(WARNING "SIMD acceleration is disabled on ${CMAKE_SYSTEM_PROCESSOR}")
endif()
else()
add_compile_options(-Wall -Werror)
Expand Down

0 comments on commit 249f17e

Please sign in to comment.