Qt requires C++11 support
<p>I used Qt 5.7 and gcc 4.9.2. Qt Core module throw <code>Qt requires C++11 support</code> error.</p>

<p><a href="https://wiki.qt.io/Qt_5.7.0_Known_Issues" rel="noreferrer">This page</a> say that  </p>

<blockquote>
  <p>gcc 4.9.2 fails to compile Qt.</p>
</blockquote>

<p>So I installed gcc 4.8. I check using below command on terminal : </p>

<pre><code>$ g++ --version
g++ (Ubuntu 4.8.4-1ubuntu15) 4.8.4
</code></pre>

<p>My kit uses cmake not qmake. I add  <code>TARGET_LINK_LIBRARIES ( xxxx yyyy /usr/bin/c++ -std=c++11</code>  to CMakeLists-txt. </p>

<p>I restart my pc and run my application again. Same error is throwed.</p>

<pre><code>/opt/Qt/5.7/gcc_64/include/QtCore/qbasicatomic.h:61: error: #error "Qt requires C++11 support"
 #  error "Qt requires C++11 support"
    ^
</code></pre>

<p>How can I solve it?</p>