[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:
Quantum 2021-02-21 15:13:40 -05:00 committed by Geoffrey McRae
parent 6358f35cb7
commit 46758efc8f

View file

@ -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)