[CMake] add_dependencies and linkage cmd
Rolf Eike Beer
eike at sf-mail.de
Tue May 10 09:06:20 EDT 2011
> Hello! I have a problem, hope someone can help me :)
> When I use "add_dependencies" with Windows VS projects (2010 for
> example) - it is ok, additional dependencies are added to projects
> dependencies. And with "linux makefiles" - it's in dependencies order
> But both cases not in linkage cmd (like target_link_libraries). So, am
> I right that "add_dependencies" only add new order of built, but not
> library to link cmd?
Yes. You are probably searching for target_link_libraries() which will add
the dependency itself anyway.
More information about the CMake