<div dir="ltr">On Mon, Aug 25, 2008 at 9:27 AM, cyril_wobow <span dir="ltr">&lt;<a href="mailto:cyril@wobow.com">cyril@wobow.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;">
Philip Lowman a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Does LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt; do what you want to do?<br>
<br>
See <a href="http://www.cmake.org/HTML/cmake-2.6.html#prop_tgt:LINK_INTERFACE_LIBRARIES" target="_blank">http://www.cmake.org/HTML/cmake-2.6.html#prop_tgt:LINK_INTERFACE_LIBRARIES</a> in conjunction with SET_PROPERTY command.<br>

<br>
<br>
If that works, CMake still could use a way to correlate the &quot;debug&quot; or &quot;optimized&quot; target_link_libraries() directives with custom build configurations. Perhaps something as simple as.<br>
<br>
cmake default:<br>
SET(CMAKE_DEBUG_CONFIGURATIONS Debug)<br>
SET(CMAKE_OPTIMIZED_CONFIGURATIONS Release;MinSizeRel;RelWithDebInfo)<br>
user code:<br>
LIST(APPEND CMAKE_DEBUG_CONFIGURATIONS Profile Coverage Maintainer)<br>
LIST(APPEND CMAKE_OPTIMIZED_CONFIGURATIONS SuperOptimized)<br>
</div></div><br></blockquote><div class="Ih2E3d">
Thank you for your answer.<br></div>
Unfortunately, I don&#39;t quite get how to implement your idea :(<br>
Having cmake work on top of the two variables you suggested would be just great; can you please get more into details?</blockquote><div><br>I don&#39;t know how to implement it either.&nbsp; It would likely take some digging through the source and I&#39;m kinda busy this week.<br>
</div></div><br>-- <br>Philip Lowman<br>
</div>