cheat-sse-build.patch 512 B

123456789101112
  1. --- a/cmake/modules/FindSSE.cmake 2017-08-22 09:29:22.000000000 +0200
  2. +++ b/cmake/modules/FindSSE.cmake 2018-01-06 19:36:32.716303559 +0100
  3. @@ -4,7 +4,7 @@
  4. if(CMAKE_SYSTEM_NAME MATCHES "Linux")
  5. if(CPU MATCHES "x86_64" OR CPU MATCHES "i.86")
  6. - exec_program(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)
  7. + set(CPUINFO "sse sse2 pni ssse3 sse4_1 sse4_2 avx avx2")
  8. string(REGEX REPLACE "^.*(sse).*$" "\\1" _SSE_THERE ${CPUINFO})
  9. string(COMPARE EQUAL "sse" "${_SSE_THERE}" _SSE_TRUE)