[CMake] Adding dependencies for static libraries

Robert Bielik robert at xponaut.com
Tue Oct 16 06:43:41 EDT 2012


Hi all, I haven't found the answer to this: I have a static library A that uses static library B, but when I create an executable C I only want to link with A.

In Visual Studio this is accomplished by adding library B to "Additional Dependencies" (Librarian/General), but how can I make CMake create that dependency ?

TIA
/Rob


More information about the CMake mailing list