Skip to content

Commit

Permalink
use file instead of exec_program to get CPUINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
fceller committed Feb 17, 2025
1 parent 38a2521 commit 2dd3644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindSSE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if(ARCH MATCHES "i386" OR ARCH MATCHES "x86_64")
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
exec_program(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)
file(READ "/proc/cpuinfo" CPUINFO)

string(REGEX REPLACE "^.*(sse2).*$" "\\1" SSE_THERE ${CPUINFO})
string(COMPARE EQUAL "sse2" "${SSE_THERE}" SSE2_TRUE)
Expand Down

0 comments on commit 2dd3644

Please sign in to comment.