mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +00:00
[client] cmake: build for nehalem when OPTIMIZE_FOR_NATIVE=NO
We need SSE intrinsics like _mm_stream_load_si128 which is only available on CPUs of nehalem or newer.
This commit is contained in:
parent
6358f35cb7
commit
46758efc8f
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ if(OPTIMIZE_FOR_NATIVE)
|
|||
if(COMPILER_SUPPORTS_MARCH_NATIVE)
|
||||
add_compile_options("-march=native")
|
||||
endif()
|
||||
else()
|
||||
add_compile_options("-march=nehalem" "-mtune=generic")
|
||||
endif()
|
||||
|
||||
option(ENABLE_OPENGL "Enable the OpenGL renderer" ON)
|
||||
|
|
Loading…
Reference in a new issue