Pass the option -msse also on x86_64

In some cases of chroot-based debian build environments where the host is
64-bit and target 32-bit, the system processor of cmake is not correctly set.
To work this around, pass the -msse2 flag also in case of 64-bit system processor;
it will be harmless for the case of normal builds.
This commit is contained in:
Jean Pierre Cimalando 2020-04-04 19:50:45 +02:00
parent 5a61f3f4a9
commit 7d4e9b144f

View file

@ -32,7 +32,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-Wextra) add_compile_options(-Wextra)
add_compile_options(-ffast-math) add_compile_options(-ffast-math)
add_compile_options(-fno-omit-frame-pointer) # For debugging purposes add_compile_options(-fno-omit-frame-pointer) # For debugging purposes
if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^i.86$") if (SFIZZ_SYSTEM_PROCESSOR MATCHES "^(i.86|x86_64)$")
add_compile_options(-msse2) add_compile_options(-msse2)
endif() endif()
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")