mirror of https://github.com/libsdl-org/SDL
cmake: don't cache HAVE_SSE value
This commit is contained in:
parent
375456a3a0
commit
82360b3175
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue