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__ #ifndef __SSE__
#error Assembler CPP flag not enabled #error Assembler CPP flag not enabled
#endif #endif
int main(int argc, char **argv) { return 0; }" HAVE_SSE) int main(int argc, char **argv) { return 0; }" CPU_SUPPORTS_SSE)
if(HAVE_SSE) if(CPU_SUPPORTS_SSE)
set(HAVE_SSE ON)
list(APPEND EXTRA_CFLAGS "-msse") list(APPEND EXTRA_CFLAGS "-msse")
endif() endif()
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS}) set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})