Ilya,<br>may be it helps you.<br>
<ul><li>
<b><code>ADD_DEPENDENCIES</code></b>: Add a dependency between top-level targets.<br>
<pre> ADD_DEPENDENCIES(target-name depend-target1<br> depend-target2 ...)<br></pre>
<p>Make
a top-level target depend on other top-level targets. A top-level
target is one created by ADD_EXECUTABLE, ADD_LIBRARY, or
ADD_CUSTOM_TARGET. Adding dependencies with this command can be used to
make sure one target is built before another target. See the DEPENDS
option of ADD_CUSTOM_TARGET and ADD_CUSTOM_COMMAND for adding
file-level dependencies in custom rules. See the OBJECT_DEPENDS option
in SET_SOURCE_FILES_PROPERTIES to add file-level dependencies to object
files. </p></li></ul>
-vladimir<br><br><div class="gmail_quote">On Wed, Apr 9, 2008 at 10:13 AM, Ilya Shvetsov <<a href="mailto:chvetsov@kranx.com">chvetsov@kranx.com</a>> wrote:<br><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">On Wed, 09 Apr 2008 07:32:59 +0300, Vladimir Sysoev <<a href="mailto:vladimir.sysoev@gmail.com" target="_blank">vladimir.sysoev@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Ilya,<br>
I suppose you have to specify your libraries as dependency to target.<br>
<br>
- vladimir<br>
<br>
</blockquote>
<br></div>
I did.<br>
I give example just to show.<br>
<br>
Project(Exmple)<br>
ADD_EXECUTABLE(Example main.cpp)<br>
TARGET_LINK_LIBRARIES(Example libA.lib libB.lib libC.lib)<br>
<br>
<br>
When some of lib*.lib is changed target 'Example' is not relinked.<br>
And I'm looking for way to force relinking<br><font color="#888888">
<br>
-- <br>
Ilya Shvetsov<br>
KranX Productions<br>
</font></blockquote></div><br>