Skip to content

Commit

Permalink
CMakeLists: only enable SSE on x86 variants
Browse files Browse the repository at this point in the history
Make it build on RISC-V, MIPS etc.

Signed-off-by: Xeonacid <[email protected]>
  • Loading branch information
Xeonacid committed Sep 7, 2023
1 parent a80436a commit 637d2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ option(FINAL_BUILD "Build as single source file." OFF)

option(FFT_GREEN "Use internal 'Green' FFT lib rather than FFTW. (Not recommended.)" OFF)

if(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm|aarch64")
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^AMD64|EM64T|x86_64|X86|i386|i686")
option(SSE "Compile with support for SSE instructions." ON)
option(SSE2 "Compile with support for SSE2 instructions." ON)
else() # ARM platforms do not have SSE
else() # non-x86 platforms do not have SSE
set(SSE OFF)
set(SSE2 OFF)
endif()
Expand Down

0 comments on commit 637d2c7

Please sign in to comment.