mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-08 01:36:41 +08:00
Issue #16: "i686" uname not properly detected as x86.
This is basically a continuation of an older bug from Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101033
This commit is contained in:
parent
8681fc060e
commit
472a906844
@ -42,7 +42,7 @@ if (TARGET_ARCHITECTURE STREQUAL "")
|
||||
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" TARGET_ARCHITECTURE)
|
||||
endif (TARGET_ARCHITECTURE STREQUAL "")
|
||||
|
||||
if (TARGET_ARCHITECTURE MATCHES ".*(x86)|(amd).*")
|
||||
if (TARGET_ARCHITECTURE MATCHES ".*(x86|amd|i686).*")
|
||||
CHECK_C_COMPILER_FLAG(-msse2 SUPPORTS_CFLAG_SSE2)
|
||||
CHECK_C_COMPILER_FLAG(-mfpmath=sse SUPPORTS_CFLAG_SSE_MATH)
|
||||
if (CHECK_SSE2 AND SUPPORTS_CFLAG_SSE2 AND SUPPORTS_CFLAG_SSE_MATH)
|
||||
@ -52,7 +52,7 @@ if (TARGET_ARCHITECTURE MATCHES ".*(x86)|(amd).*")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffloat-store")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffloat-store")
|
||||
endif (CHECK_SSE2 AND SUPPORTS_CFLAG_SSE2 AND SUPPORTS_CFLAG_SSE_MATH)
|
||||
endif (TARGET_ARCHITECTURE MATCHES ".*(x86)|(amd).*")
|
||||
endif (TARGET_ARCHITECTURE MATCHES ".*(x86|amd|i686).*")
|
||||
|
||||
configure_file(
|
||||
uchardet.pc.in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user