<div dir="ltr">On Thu, Sep 4, 2008 at 5:37 PM, Brad King <span dir="ltr">&lt;<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Philip Lowman wrote:<br>
&gt; Ultimately, TARGET_LINK_LIBRARIES() works just fine the way it is with<br>
&gt; the debug/optimized keywords satisfying normal use cases. &nbsp;The<br>
&gt; debug/optimized keywords are in the lexicon and they aren&#39;t going<br>
&gt; anywhere. &nbsp;What is the harm in accepting a patch (if a user submitted<br>
&gt; one) that facilitated global association of custom build configurations<br>
&gt; with the debug/optimized keywords? &nbsp;I&#39;m honestly surprised that this has<br>
&gt; been hardcoded for as long as it has been.<br>
<br>
</div>I think the best way to define meaning of the keywords is simply to<br>
define one global property &#39;DEBUG_CONFIGURATIONS&#39;:<br>
<br>
set_property(GLOBAL PROPERTY DEBUG_CONFIGURATIONS Debug MyDebugConfig)<br>
<br>
The property is generic enough that it could be useful for other things<br>
later, so I&#39;m willing to create it even though it extends the old way.<br>
The TARGET_LINK_LIBRARIES() command can use this property to define<br>
which configurations are associated with &#39;debug&#39; (and all others with<br>
&#39;optimized&#39;). &nbsp;There some subtle issues with the implementation and<br>
testing of the property, so I&#39;ve taken care of it.</blockquote><div><br>Thanks for adding this Brad.&nbsp; I like your idea of one global property for this instead of using two global variables as I originally suggested.<br>
</div></div><br>-- <br>Philip Lowman<br>
</div>