mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-26 16:18:57 +00:00
cmake: don't cache HAVE_SSE value
This commit is contained in:
committed by
Anonymous Maarten
parent
375456a3a0
commit
82360b3175
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user