Hello Pierre,

my knowledge concerning the linking process is rather limited, but wouldn't 
that mean you don't need to inter-link the libraries at all, when the symbols 
are resolved at link-time with the executable?
add_executable(ex1 libB libC1 libC2) should suffice then.

Best regards,
Andreas


Am 25.02.2013 um 13:47 schrieb Pierre Mallard:

> Well it is indeed possible and it works... Note that static libraries 's 
> object files are built with unresolved symbols. Final resolution is performed 
> when building executable
> Therefore libB can compile without libC and conversely ...
> Anyone else ?
> 
> 
> 
> On Mon, Feb 25, 2013 at 12:23 PM, Ansis Māliņš <[email protected]> wrote:
> >libB depends on libC and libC depends on libB.
> How is that even possible? You compile B and it fails because there's no C 
> yet. You compile C and it fails because there's no B yet.
> 
> --
> 
> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

--

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