title: CMake - remove a compile flag for a single translation unit
body: <p>I would like to remove a set compile flag for a single translation unit. Is there a way to do this? (e.g. using <code>set_property</code>?)</p>
  
  <p>Note: the compile-flag has no <code>-fno-name</code> negation (for whatever reason). </p>
  
  <p>I've tried: </p>
  
  <pre><code>get_property(FLAGS TARGET target PROPERTY COMPILE_FLAGS)
  string(REPLACE "-fname" "" FLAGS ${FLAGS})
  set_property(TARGET target PROPERTY COMPILE_FLAGS ${FLAGS})
  </code></pre>
  
  <p>without any luck. The property I want to remove is part of <code>CMAKE_CXX_FLAGS</code> and thus this does not work.</p>