Update compiler build settings for CMake (#458)

This commit is contained in:
Chuck Walbourn
2024-04-05 14:37:53 -07:00
committed by GitHub
parent 0a85faddc1
commit fa22a4ec53
7 changed files with 63 additions and 5 deletions

View File

@@ -66,6 +66,10 @@ elseif(NOT (${DIRECTX_ARCH} MATCHES "^arm"))
set(ARCH_SSE2 $<$<NOT:$<CXX_COMPILER_ID:MSVC,Intel>>:-msse2>)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
list(APPEND ARCH_SSE2 -mfpmath=sse)
endif()
list(APPEND COMPILER_SWITCHES ${ARCH_SSE2})
endif()