[CMake] Question about MSVC link-process

Timenkov Yuri ytimenkov at parallels.com
Wed Apr 9 02:28:50 EDT 2008


On Wednesday 09 April 2008 10:13:58 Ilya Shvetsov wrote:
> On Wed, 09 Apr 2008 07:32:59 +0300, Vladimir Sysoev
>
> <vladimir.sysoev at gmail.com> wrote:
> > Ilya,
> > I suppose you have to specify your libraries as dependency to target.
> >
> > - vladimir
>
> I did.
> I give example just to show.
>
> Project(Exmple)
> ADD_EXECUTABLE(Example main.cpp)
> TARGET_LINK_LIBRARIES(Example libA.lib libB.lib libC.lib)
Are libA.lib targets built by cmake in the same solution?
In my configuration cmake sets proper dependencies between projects.
The only difference I usually specify TARGET_LINK_LIBRARIES(Example A B C)
Where A, B and C are targets generated from ADD_LIBRARY() command.

>
>
> When some of lib*.lib is changed target 'Example' is not relinked.
> And I'm looking for way to force relinking




More information about the CMake mailing list