title: inlining failed in call to always_inline ‘_mm_mullo_epi32’: target specific option mismatch
body: <p>I am trying to compile a C program using cmake which uses SIMD intrinsics.  When I try to compile it, I get two errors</p>
  
  <p>/usr/lib/gcc/x86_64-linux-gnu/5/include/<strong>smmintrin.h</strong>:326:1: error: inlining failed in call to always_inline ‘_mm_mullo_epi32’: target specific option mismatch
   _mm_mullo_epi32 (__m128i __X, __m128i __Y)</p>
  
  <p>/usr/lib/gcc/x86_64-linux-gnu/5/include/<strong>tmmintrin.h</strong>:136:1: error: inlining failed in call to always_inline ‘_mm_shuffle_epi8’: target specific option mismatch
   _mm_shuffle_epi8 (__m128i __X, __m128i __Y)</p>
  
  <p>This issue has already been solved here <a href="https://stackoverflow.com/questions/35772562/inlining-failed-in-call-to-always-inline-m128i-mm-cvtepu8-epi32-m128i-t">StackOverflow</a> by setting     </p>
  
  <pre><code>set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")
  </code></pre>
  
  <p>I try the very same and many other options. But my project still fails to compile.    </p>
  
  <pre><code>set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -sse4_1")  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=nehalem")  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1 -msse4.2")  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ssse3")  
  </code></pre>