Re: [CMake] Question about transitive deps and static libs.

2017-04-19 Thread Petr Kmoch
Hi, I will offer an alternative phrasing based on what makes me personally understand this best. It might potentially be useful for the documentation update you're planning. `target_link_libraries(A B)` specifies that the code in A needs B to be added to the produced binary when the binary is

Re: [CMake] Question about transitive deps and static libs.

2017-04-18 Thread Eric Noulard
Answering to myself. This mail by Craig explains a lot: https://cmake.org/pipermail/cmake/2016-May/063400.html Sorry for the noise. I guess I have my answer in there. I'll try to propose a documentation update based on Craig's explanation because,

[CMake] Question about transitive deps and static libs.

2017-04-18 Thread Eric Noulard
I have a question concerning the transitive linking of dependence and static libs. I'm working a on prokect where some shared lib are linked to static lib (do not ask me why). So I do: set(CMAKE_POSITION_INDEPENDENT_CODE True) then I have a bunch of libraries (either static or shared) which