[CMake] Transitive Link Dependencies

2010-07-14 Thread Kevin Fitch
I have found a situation where transitive link dependencies don't seem to work the way I would expect. I have a library A that depends on B. e.g. target_link_libraries(A B) # and elsewhere we have ... target_link_libraries(foo A) #then B gets linked into foo as expected #But, if I try to be more e

Re: [CMake] Transitive Link Dependencies

2010-07-14 Thread Michael Hertling
On 07/14/2010 02:38 PM, Kevin Fitch wrote: > I have found a situation where transitive link dependencies don't seem to > work the way I would expect. I have a library A that depends on B. e.g. > > target_link_libraries(A B) > # and elsewhere we have ... > target_link_libraries(foo A) > #then B get

Re: [CMake] Transitive Link Dependencies

2010-07-14 Thread Kevin Fitch
A.a is not intended to be a path. From my reading of the cmake book adding .a is the way you say you specifically want the static library over the dynamic library. To me libA.a would be a path. So, you are saying that there is currently no way in cmake to get transitive link dependencies AND speci

Re: [CMake] Transitive Link Dependencies

2010-07-14 Thread Michael Hertling
On 07/14/2010 05:51 PM, Kevin Fitch wrote: > A.a is not intended to be a path. From my reading of the cmake book adding > .a is the way you say you specifically want the static library over the > dynamic library. To me libA.a would be a path. If "A.a" is not the name of a target it's treated as a