cmake: rework logic to apply -msse2, -msse3, -mssse3 to specific files
authorMike Gilbert <floppym@gentoo.org>
Sun, 24 Dec 2017 21:58:07 +0000 (16:58 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 29 Dec 2017 19:06:49 +0000 (14:06 -0500)
commit9bfe2fcfb961a8cd63f352966abe730bba538209
treeca83459464dfce3aa799c429a1b05f92c798598b
parent4889652c11429f2c20e44d82ce5af53a96aa804c
cmake: rework logic to apply -msse2, -msse3, -mssse3 to specific files

If we apply -mssse3 to files that don't need it, gcc may automagically
generate instructions that will not run on certain CPUs. This breaks the
runtime feature detection code (IsProcessorFeaturePresent).

Fixes: https://github.com/FreeRDP/FreeRDP/issues/4308
libfreerdp/CMakeLists.txt