Skip to content

Commit

Permalink
Merge pull request #36 from ProjectKML/master
Browse files Browse the repository at this point in the history
Add support for windows on arm compilation
  • Loading branch information
zeux authored Jul 8, 2024
2 parents 9867afd + 249f17e commit 2487361
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 2487361

Please sign in to comment.