[CMake] Dependent Libraries added automatically?

2008-09-26 Thread Mike Jackson
I started noticing some warnings when I am linking my project executables that bascially says libraries are listed multiple times on the link line. Now this is just a warning so I _could_ ignore it but I am curios about how cmake is working at this point. Here is what I have: Library

Re: [CMake] Dependent Libraries added automatically?

2008-09-26 Thread Bill Hoffman
Mike Jackson wrote: I started noticing some warnings when I am linking my project executables that bascially says libraries are listed multiple times on the link line. Now this is just a warning so I _could_ ignore it but I am curios about how cmake is working at this point. Here is what I

Re: [CMake] Dependent Libraries added automatically?

2008-09-26 Thread Michael Jackson
On Sep 26, 2008, at 2:28 PM, Bill Hoffman wrote: Mike Jackson wrote: I started noticing some warnings when I am linking my project executables that bascially says libraries are listed multiple times on the link line. Now this is just a warning so I _could_ ignore it but I am curios about

Re: [CMake] Dependent Libraries added automatically?

2008-09-26 Thread Bill Hoffman
Michael Jackson wrote: add_library(a ...) target_link_library(a b c) add_executable(foo ...) target_link_libraries(foo a) This will cause foo to link to a b c. With CMake 2.6.2 you can stop this from happening with a target property: