[Cmake] Re: library dependency information
Amitha Perera
perera at cs.rpi.edu
Thu Jan 31 10:38:39 EST 2002
It looks like it's going to take me a long while to get time to do
this properly. I apologise to any that have been eagerly awaiting it.
Amitha.
On Fri, Jan 18, 2002 at 06:55:43AM -0500, William A. Hoffman wrote:
> So, to summarize:
>
> 1. You will add an option that removes duplicates just like the -L options
> are currently removed.
> 2. For static builds you will use the libraries that have been linked to
> libraries to get all the
> needed libraries for an exectuable:
> So if you have:
> libA -> libB
> Then you have an executable foo.exe that has a TARGET_LINK_LIBRARY(foo A)
> you will know to add the -lB in the right order.
>
> If projects are building on Windows all libraries will have the list of
> libraries that they link against, so most
> projects will have this information.
>
> You will have to make a cache entry to store the information. Something like:
> A_LIBRARY_LINKS:INTERNAL:B
>
> There is already some stuff like that going on in the cache, look at your
> cache to see.
>
> Also, I like the idea of moving this into the generator parent class. We
> could add a method there to collapse
> the library path and library link options. The code is duplicated in the
> two generators now.
>
> -Bill
More information about the CMake
mailing list