cmake: don't cache HAVE_SSE value

This commit is contained in:
Anonymous Maarten 2022-11-25 23:07:23 +01:00 committed by Anonymous Maarten
parent 375456a3a0
commit 82360b3175
1 changed files with 3 additions and 2 deletions

View File

@ -806,8 +806,9 @@ if(SDL_ASSEMBLY)
#ifndef __SSE__
#error Assembler CPP flag not enabled
#endif
int main(int argc, char **argv) { return 0; }" HAVE_SSE)
if(HAVE_SSE)
int main(int argc, char **argv) { return 0; }" CPU_SUPPORTS_SSE)
if(CPU_SUPPORTS_SSE)
set(HAVE_SSE ON)
list(APPEND EXTRA_CFLAGS "-msse")
endif()
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})