Skip to content

Commit 2771ef3

Browse files
authored
Merge pull request #27 from gubaojian/m4_compile_error
fix compile error on apple m4
2 parents 50fdf37 + c47f4d8 commit 2771ef3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ elseif(ARCH_AARCH64)
4747
set(MARCH "-march=armv8-a")
4848
else()
4949
set(MARCH "-march=native")
50-
set(MSSE "-mssse3")
50+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
51+
## apple m not support sse
52+
else ()
53+
## only x86_64 support
54+
set(MSSE "-mssse3")
55+
endif ()
5156
endif()
5257

5358
# Object library is just a bunch of object files.

0 commit comments

Comments
 (0)