/p>
<div class="versionadded">
<p><span class="versionmodified added">New in version 3.20: </span>One may use generator expressions to specify per-configuration outputs.
For example, the code:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">add_custom_command(</span><span class="w"></span>
<span class="w">  </span><span class="no">OUTPUT</span><span class="w"> </span><span class="s">&quot;out-$&lt;CONFIG&gt;.c&quot;</span><span class="w"></span>
<span c