[CMake] Linking to libraries that depend on other libraries
David Doria
daviddoria at gmail.com
Wed May 16 17:19:34 EDT 2012
I have a library, libA, that depends on another library, libB, with
this structure:
My Program -> libA -> libB
In my program, if I only link to libA, I get linker errors that it
can't find things in libB, and these errors are fixed if I also link
My Program to libB. This makes sense, but is there any way to avoid it
with CMake? That is, a command that I can put in libA (created with
add_library) that says "when something links to me (libA),
also/automatically link it to libB"?
Thanks,
David
More information about the CMake
mailing list