lib_tgvoip.cmake: Match against x86 arches.

This avoids matching against other 32bit arches like armv7/armhf that
doesn't have msse2 but are 32bit and need other 32bit-specific flags to
allow for compilation like -g0.
This commit is contained in:
Leo 2020-01-02 16:05:29 +01:00 committed by John Preston
parent 3589e658c9
commit f2c8167124
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ else()
-Wno-error=sequence-point
-Wno-error=unused-result
)
if (build_linux32)
if (build_linux32 AND CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*")
target_compile_options(lib_tgvoip PRIVATE -msse2)
endif()
target_compile_definitions(lib_tgvoip