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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to