I&#39;m doing the following:<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>set_property( TARGET ${target_name} APPEND_STRING PROPERTY</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>COMPILE_FLAGS &quot;/ZI /Gy &quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>)</div></div><div><br></div><div>However this applies to all configurations. I want to only set this compiler flag for debug builds, not release. How can I do this?</div>