Fix: Use more selectivity when building SSE specific code
See: https://github.com/OpenTTD/OpenTTD/issues/9935 (cherry picked from commit c3f55d53405af04bfe928d9e1a815e06c187ca50)
This commit is contained in:
committed by
Jonathan G Rennison
parent
432717b21d
commit
44e3b05c50
@@ -38,21 +38,6 @@ add_files(
|
||||
CONDITION NOT OPTION_DEDICATED AND OPENGL_FOUND
|
||||
)
|
||||
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||
set_compile_flags(
|
||||
32bpp_anim_sse2.cpp
|
||||
32bpp_sse2.cpp
|
||||
COMPILE_FLAGS -msse2)
|
||||
set_compile_flags(
|
||||
32bpp_ssse3.cpp
|
||||
COMPILE_FLAGS -mssse3)
|
||||
set_compile_flags(
|
||||
32bpp_anim_sse4.cpp
|
||||
32bpp_sse4.cpp
|
||||
COMPILE_FLAGS -msse4.1)
|
||||
endif()
|
||||
|
||||
add_files(
|
||||
base.hpp
|
||||
common.hpp
|
||||
|
||||
Reference in New Issue
Block a user