<div class="gmail_quote">On Sat, May 5, 2012 at 5:34 AM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com" target="_blank">themiwi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 05/04/2012 10:16 PM, Robert Dailey wrote:<br>
&gt; I&#39;m doing the following:<br>
&gt;<br>
&gt; set_property( TARGET ${target_name} APPEND_STRING PROPERTY<br>
&gt; COMPILE_FLAGS &quot;/ZI /Gy &quot;<br>
&gt; )<br>
&gt;<br>
&gt; However this applies to all configurations. I want to only set this<br>
&gt; compiler flag for debug builds, not release. How can I do this?<br>
&gt;<br>
<br>
</div></div>Can you misuse the COMPILE_DEFINITIONS_DEBUG property? Should work, IMHO.</blockquote><div><br></div><div>I can try it as a hack/workaround, but I would prefer to use the &quot;right tool for the job&quot;. Perhaps this would make a good feature request. I definitely need this to work for Visual Studio, so I can&#39;t assume the build configuration is known at generation time in CMake. </div>
</div>