title: Compiling C++ file with CMAKE (Unrecognized '-rdynamic')
body: <p>I am trying to add a single C++ file to a working CMAKE project.</p>
  
  <p>The project is building fine when I only have C files in the project.  However, as soon as I add a cpp file to the <code>ADD_EXECUTABLE</code> section of <code>CMakeLists.txt</code> I get the following error: <code>arm-none-eabi-gcc: error: unrecognized command line option '-rdynamic'</code>.  </p>
  
  <p>Does anyone have any idea what might be going on here? Or what I could do to fix it?</p>
  
  <p>Thanks so much for the help!</p>
  
  <p>PS - I have a section at the top of the <code>CMakeLists.txt</code> that says <code>SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # get rid of -rdynamic</code>, but it doesn't seem to be doing that.</p>