title: cmake/make - unrecognized command line option "-std=c++14" - but G++ does
body: <p>I compiled <code>gcc</code> and <code>cmake</code> (in that order) in my home folder on a server today (the compiler on the server is 5 years old and I need <code>C++14</code> features...).</p>
  
  <p>There is no problem when I compile something by command,</p>
  
  <pre><code>g++ -std=c++14 main.cc
  </code></pre>
  
  <p>But if I use <code>cmake .</code> then <code>make</code>, I got this error :</p>
  
  <pre><code>cc1plus: error: unrecognized command line option "-std=c++14"
  </code></pre>
  
  <p><strong>in CMakeLists.txt :</strong></p>
  
  <pre><code>add_definitions(-std=c++14)
  </code></pre>
  
  <p><strong>in CMakeFiles/a.out.dir/flags.make</strong></p>
  
  <pre><code>CXX_FLAGS = -I/home/jager/manufacture/usr/local/include -std=c++14
  </code></pre>
  
  <p>for information :</p>
  
  <pre><code>$ g++ --version
  g++ (GCC) 5.2.0
  Copyright (C) 2015 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  
  $ cmake --version
  cmake version 3.3.2
  
  CMake suite maintained and supported by Kitware (kitware.com/cmake).
  </code></pre>
  
  <p>I have no idea what the fheck...</p>