aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/gcc
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-02-17 01:13:36 +0100
committerShauren <shauren.trinity@gmail.com>2024-02-17 01:13:36 +0100
commit7e51d17a0aa06c7aaf25a836d90487b17383fca7 (patch)
tree0de0c15daa78dfc20d18dd1b9bc5db6f67af5332 /cmake/compiler/gcc
parent9ec1cc07b45ec703028636b2a4302d4a238d090a (diff)
Build: Improve ARM target detection in cmake (needed by MSVC)
Diffstat (limited to 'cmake/compiler/gcc')
-rw-r--r--cmake/compiler/gcc/settings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index 6393146f329..b756901f097 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -18,7 +18,7 @@ if(PLATFORM EQUAL 32)
-msse2
-mfpmath=sse)
endif()
-if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
+if(TRINITY_SYSTEM_PROCESSOR MATCHES "x86|amd64")
target_compile_definitions(trinity-compile-option-interface
INTERFACE
-DHAVE_SSE2