title: Generate assembly for a target
body: <p>I am trying to pass <code>-S</code> to GCC for one of my executables. I tried this: </p>
  
  <pre><code>set_target_properties(MyTarget PROPERTIES COMPILE_FLAGS "-S") 
  </code></pre>
  
  <p>but I get "file format not recognized; treating as linker script"</p>
  
  <p>(It builds fine without that line)</p>
  
  <p>Is there something wrong with passing <code>-S</code> like this? Or is there another way to have CMake output the assembly .s files?</p>